Compare commits

...

4 Commits

Author SHA1 Message Date
3d65ba5862 nushell: Set global cargo target dir env 2024-06-02 13:17:27 +02:00
3a4bf7d82d eww: Tweaks 2024-06-02 13:17:27 +02:00
db25034891 git: Always show gpg signatures in log 2024-06-02 13:17:27 +02:00
ff7ca4e4ba nvim: Tweaks 2024-06-02 13:17:26 +02:00
6 changed files with 32 additions and 14 deletions

View File

@ -14,7 +14,7 @@
(defwindow bar1
:monitor 1
:geometry (geometry :height "100%"
:width "50px"
:width "40px"
:anchor "center left")
:stacking "fg"
:exclusive true
@ -41,6 +41,7 @@
(temperature)
(battery)
(box :class "thingy" (systray :orientation "v"))
(kb_layout)
(date)
(clock)
(pwr)
@ -94,7 +95,7 @@
(button :class "clickable" :onclick "ba bluetoothctl disconnect" (label :text "---"))
)
)
(label :text "BLT")
(label :text "BLU")
(revealer :transition "slideup"
:reveal {!show_bluetooth}
(label :text "---")
@ -120,7 +121,7 @@
(label :text "VOL")
(revealer :transition "slideup"
:reveal {!show_volume}
(label :text volume_out)
(label :text {is_muted ? "MM" : volume_out})
)
)))
@ -129,7 +130,7 @@
:valign "end"
:class "battery thingy"
:visible {current_temp != ""}
(label :text "TMP")
(label :text "TEM")
(label :text "${current_temp / 1000}°")
))
@ -151,6 +152,13 @@
;(label :text "${bat_charge}%")
))
(defwidget kb_layout []
(button :onclick "niri msg action switch-layout next"
:hexpand true
:class "thingy clickable"
(label :text "KBL")
))
(defwidget date []
(tooltip :halign "fill"
(calendar :class "calendar")
@ -197,8 +205,9 @@
(defvar show_volume false)
(defvar show_bluetooth false)
(defpoll workspaces :interval "1s" "eww-workspaces")
(defpoll workspaces :interval "1s" "wmutils workspaces")
(defpoll volume_out :interval "1s" "pamixer --get-volume")
(defpoll is_muted :interval "1s" "pamixer --get-mute")
(defpoll vpn_status :interval "1s" "mullvad-status")
(defpoll current_minute :interval "1s" "date +%M")
(defpoll current_hour :interval "1s" "date +%H")

View File

@ -97,8 +97,9 @@ $env.BROWSER = "firefox"
$env.EDITOR = "nvim"
$env.DEFMT_LOG = "info"
$env.MOZ_ENABLE_WAYLAND = "1"
$env.VOLTA_HOME = ($env.HOME + "/.volta")
$env.VOLTA_HOME = $"($env.HOME)/.volta"
$env.CARGO_TARGET_DIR = $"($env.HOME)/.cargo/target"
mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu
#zoxide init nushell | save -f ~/.cache/zoxide.nu
zoxide init nushell | save -f ~/.cache/zoxide.nu

View File

@ -34,7 +34,8 @@ require("auto-save").setup({
enabled = false
})
require("todo-comments").setup()
-- FIXME
--require("todo-comments").setup()
rust_tools.setup({

View File

@ -82,7 +82,7 @@ return require('packer').startup(function(use)
use "nvim-lua/plenary.nvim"
use {
'folke/todo-comments.nvim',
event = 'VimEnter',
event = 'VimEnter',
requires = { 'nvim-lua/plenary.nvim' }
}
@ -91,7 +91,7 @@ return require('packer').startup(function(use)
use 'williamboman/mason-lspconfig.nvim'
use 'neovim/nvim-lspconfig'
use 'simrat39/rust-tools.nvim'
use 'WhoIsSethDaniel/lualine-lsp-progress.nvim'
--use 'WhoIsSethDaniel/lualine-lsp-progress.nvim'
-- nushell support
--use { 'LhKipp/nvim-nu', run = function() vim.fn[':TSInstall nu'] end} }
@ -106,9 +106,9 @@ return require('packer').startup(function(use)
-- Useful completion sources:
use 'hrsh7th/cmp-nvim-lua'
use 'hrsh7th/cmp-nvim-lsp-signature-help'
use 'hrsh7th/cmp-vsnip'
use 'hrsh7th/cmp-path'
use 'hrsh7th/cmp-buffer'
use 'hrsh7th/cmp-vsnip'
use 'hrsh7th/cmp-path'
use 'hrsh7th/cmp-buffer'
use 'hrsh7th/vim-vsnip'
-- telescope

View File

@ -25,6 +25,10 @@ require("gruvbox").setup({
transparent_mode = false,
})
vim.o.background = "dark" -- or "light" for light mode
{% if light %}
vim.o.background = "light"
{% else %}
vim.o.background = "dark"
{% end %}
vim.cmd([[colorscheme gruvbox]])

View File

@ -26,3 +26,6 @@
[interactive]
diffFilter = delta --color-only
[log]
showSignature = true