diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml index d5114a1..eb655c0 100644 --- a/.config/alacritty/alacritty.toml +++ b/.config/alacritty/alacritty.toml @@ -3,5 +3,8 @@ import = [ "~/.config/alacritty/gruvbox_dark.toml" ] +[window] +dynamic_padding = true + [font.normal] family = "Adwaita Mono" diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index 26ec888..12f9a91 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl @@ -595,11 +595,11 @@ binds { // Pixel sizes use logical, or scaled, pixels. I.e. on an output with scale 2.0, // set-column-width "100" will make the column occupy 200 physical screen pixels. Mod+Minus { set-column-width "-10%"; } - Mod+Plus { set-column-width "+10%"; } + Mod+Equal { set-column-width "+10%"; } // Finer height adjustments when in column with other windows. Mod+Shift+Minus { set-window-height "-10%"; } - Mod+Shift+Plus { set-window-height "+10%"; } + Mod+Shift+Equal { set-window-height "+10%"; } // Move the focused window between the floating and the tiling layout. Mod+V { toggle-window-floating; } diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index e226ec8..5293e9c 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -143,7 +143,7 @@ require("nvim-treesitter").install('lua', 'latex', 'c', 'java', 'ocaml') vim.pack.add({ "https://github.com/mason-org/mason.nvim" }) require("mason").setup() -vim.lsp.enable({'lua_ls', 'texlab', 'clangd', 'jdtls', 'ocaml-lsp'}) +vim.lsp.enable({'lua_ls', 'texlab', 'clangd', 'jdtls', 'ocaml-lsp', 'fish-lsp'}) vim.keymap.set('n', 'lf', vim.lsp.buf.format, { desc = 'Formats a buffer using the attached language server clients' }) diff --git a/.config/swaylock/config b/.config/swaylock/config index f7933a9..0c044a7 100644 --- a/.config/swaylock/config +++ b/.config/swaylock/config @@ -4,7 +4,7 @@ color=191919E5 indicator-idle-visible indicator-radius=64 -indicator-thickness=8 +indicator-thickness=4 inside-color=191919E5 inside-clear-color=191919E5 @@ -21,19 +21,19 @@ layout-bg-color=191919E5 layout-border-color=505050E5 layout-text-color=ffffff -line-color=505050E5 -line-clear-color=505050E5 -line-caps-lock-color=505050E5 -line-ver-color=505050E5 -line-wrong-color=505050E5 +line-color=50505000 +line-clear-color=50505000 +line-caps-lock-color=50505000 +line-ver-color=50505000 +line-wrong-color=50505000 -ring-color=7f7f7fE5 +ring-color=7f7f7f00 ring-clear-color=ffc87fE5 ring-caps-lock-color=7f7f7fE5 ring-ver-color=7fc8ffE5 ring-wrong-color=9b0000E5 -separator-color=505050E5 +separator-color=50505000 text-color=ffffff text-clear-color=ffffff diff --git a/.local/scripts/actionmenu.fish b/.local/scripts/actionmenu.fish index 47fc271..fb7ce85 100755 --- a/.local/scripts/actionmenu.fish +++ b/.local/scripts/actionmenu.fish @@ -28,16 +28,60 @@ function open_location end end -set options "󱂵 Open Location" "󰐓 Clear Playlist" "󰌾 Lock" +function audio_source + set dump (string trim -c '"' (pw-dump | jq '.[] | select(.info.props."media.class" == "Audio/Source")' | jq '.id, .info.props."node.nick"')) + + set ids + set names + + for i in (seq (count $dump)) + if test (math $i % 2) -eq 0 + set -a names $dump[$i] + else + set -a ids $dump[$i] + end + end + + set input (menu $names) + + wpctl set-default $ids[(contains -i $input $names)] +end + +function audio_sink + set dump (string trim -c '"' (pw-dump | jq '.[] | select(.info.props."media.class" == "Audio/Sink")' | jq '.id, .info.props."node.nick"')) + + set ids + set names + + for i in (seq (count $dump)) + if test (math $i % 2) -eq 0 + set -a names $dump[$i] + else + set -a ids $dump[$i] + end + end + + set input (menu $names) + + wpctl set-default $ids[(contains -i $input $names)] +end + +set options "󱂵 Open Location" "󰐓 Clear Playlist" "󰌾 Lock" "󰍬 Select Audio Source" "󰕾 Select Audio Sink" set input (menu $options) switch $input case $options[1] - open_location + open_location case $options[2] - mpc clear + mpc clear case $options[3] - exec swaylock + exec swaylock + + case $options[4] + audio_source + + case $options[5] + audio_sink end