diff --git a/README.md b/README.md index 66b977a..639979d 100644 --- a/README.md +++ b/README.md @@ -9,23 +9,25 @@ It will link all dotfiles to their correct place. Fonts are provided in `fonts/` SFMono also provides icons. -## 'invisible' deps +## deps ### for sway + `waybar` -+ `SwayNotificationCenter` - default conf -+ `bemenu` (dmenu replacement) ++ `SwayNotificationCenter` ++ `wob` (progress bar) + `rofi` (nice launcher) + `slurp`, `grim`, `swappy` (screenshot) ### other (used in scripts) -+ `fzf` ++ `fzf` (used in many places) + `ripgrep` -+ `ripgrep-all` -+ `fd` (rust find) -+ `fu` (find icons) ++ `ripgrep-all` (used in grep scripts) ++ `fd` (rust find; used in scripts) ++ `fu` (find icons; not needed) + all `fcitx5` stuff (data, gtk, qt, mozc) ### theming stuff ++ main bg: #323232 ++ accent: #93b259 + icons: `Flat-Remix-Blue-Light-darkPanel` + theme: `Flat-Remix-GTK-Blue-Light-solid` + rofi: https://github.com/catppuccin/rofi diff --git a/files/sway/.config/sway/config b/files/sway/.config/sway/config index 44d387f..76e530f 100644 --- a/files/sway/.config/sway/config +++ b/files/sway/.config/sway/config @@ -126,17 +126,21 @@ input type:keyboard { bindsym $mod+v exec swaync-client -t -sw # Brightness - bindsym XF86MonBrightnessUp exec light -A 5 - bindsym XF86MonBrightnessDown exec light -U 5 + set $SHOW_LIGHT light -G | cut -d'.' -f1 > $WOBSOCK + bindsym XF86MonBrightnessUp exec light -A 5 && $SHOW_LIGHT + bindsym XF86MonBrightnessDown exec light -U 5 && $SHOW_LIGHT # Audio bindsym XF86AudioPlay exec playerctl play-pause bindsym XF86AudioPrev exec playerctl previous bindsym XF86AudioNext exec playerctl next - bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% - bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% - bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle - bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle + set $SHOW_VOL pactl get-sink-volume @DEFAULT_SINK@ | head -n 1| awk '{print substr($5, 1, length($5)-1)}' > $WOBSOCK + bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% && $SHOW_VOL + bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && $SHOW_VOL + set $SHOW_MUTE_OUT notify-send "Audio Output" "$(pactl get-sink-mute @DEFAULT_SINK@)" -i speaker + set $SHOW_MUTE_IN notify-send "Microphone" "$(pactl get-source-mute @DEFAULT_SOURCE@)" -i microphone + bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle && $SHOW_MUTE_IN + bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && $SHOW_MUTE_OUT # Moving around: # Move your focus around @@ -237,5 +241,9 @@ exec syncthing exec swaync exec fcitx5 +# On-screen progress bar +set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock +exec_always rm -f $WOBSOCK && mkfifo $WOBSOCK && tail -f $WOBSOCK | wob + # Include some defaults include /etc/sway/config.d/*