reworked swaylock and some other stuff
This commit is contained in:
parent
482c323367
commit
b8c24493ca
5 changed files with 62 additions and 15 deletions
|
|
@ -3,5 +3,8 @@ import = [
|
|||
"~/.config/alacritty/gruvbox_dark.toml"
|
||||
]
|
||||
|
||||
[window]
|
||||
dynamic_padding = true
|
||||
|
||||
[font.normal]
|
||||
family = "Adwaita Mono"
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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', '<leader>lf', vim.lsp.buf.format,
|
||||
{ desc = 'Formats a buffer using the attached language server clients' })
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue