sway: add progess bar for volume and brightness
This commit is contained in:
16
README.md
16
README.md
@@ -9,23 +9,25 @@ It will link all dotfiles to their correct place.
|
|||||||
Fonts are provided in `fonts/`
|
Fonts are provided in `fonts/`
|
||||||
SFMono also provides icons.
|
SFMono also provides icons.
|
||||||
|
|
||||||
## 'invisible' deps
|
## deps
|
||||||
### for sway
|
### for sway
|
||||||
+ `waybar`
|
+ `waybar`
|
||||||
+ `SwayNotificationCenter` - default conf
|
+ `SwayNotificationCenter`
|
||||||
+ `bemenu` (dmenu replacement)
|
+ `wob` (progress bar)
|
||||||
+ `rofi` (nice launcher)
|
+ `rofi` (nice launcher)
|
||||||
+ `slurp`, `grim`, `swappy` (screenshot)
|
+ `slurp`, `grim`, `swappy` (screenshot)
|
||||||
|
|
||||||
### other (used in scripts)
|
### other (used in scripts)
|
||||||
+ `fzf`
|
+ `fzf` (used in many places)
|
||||||
+ `ripgrep`
|
+ `ripgrep`
|
||||||
+ `ripgrep-all`
|
+ `ripgrep-all` (used in grep scripts)
|
||||||
+ `fd` (rust find)
|
+ `fd` (rust find; used in scripts)
|
||||||
+ `fu` (find icons)
|
+ `fu` (find icons; not needed)
|
||||||
+ all `fcitx5` stuff (data, gtk, qt, mozc)
|
+ all `fcitx5` stuff (data, gtk, qt, mozc)
|
||||||
|
|
||||||
### theming stuff
|
### theming stuff
|
||||||
|
+ main bg: #323232
|
||||||
|
+ accent: #93b259
|
||||||
+ icons: `Flat-Remix-Blue-Light-darkPanel`
|
+ icons: `Flat-Remix-Blue-Light-darkPanel`
|
||||||
+ theme: `Flat-Remix-GTK-Blue-Light-solid`
|
+ theme: `Flat-Remix-GTK-Blue-Light-solid`
|
||||||
+ rofi: https://github.com/catppuccin/rofi
|
+ rofi: https://github.com/catppuccin/rofi
|
||||||
|
|||||||
@@ -126,17 +126,21 @@ input type:keyboard {
|
|||||||
bindsym $mod+v exec swaync-client -t -sw
|
bindsym $mod+v exec swaync-client -t -sw
|
||||||
|
|
||||||
# Brightness
|
# Brightness
|
||||||
bindsym XF86MonBrightnessUp exec light -A 5
|
set $SHOW_LIGHT light -G | cut -d'.' -f1 > $WOBSOCK
|
||||||
bindsym XF86MonBrightnessDown exec light -U 5
|
bindsym XF86MonBrightnessUp exec light -A 5 && $SHOW_LIGHT
|
||||||
|
bindsym XF86MonBrightnessDown exec light -U 5 && $SHOW_LIGHT
|
||||||
|
|
||||||
# Audio
|
# Audio
|
||||||
bindsym XF86AudioPlay exec playerctl play-pause
|
bindsym XF86AudioPlay exec playerctl play-pause
|
||||||
bindsym XF86AudioPrev exec playerctl previous
|
bindsym XF86AudioPrev exec playerctl previous
|
||||||
bindsym XF86AudioNext exec playerctl next
|
bindsym XF86AudioNext exec playerctl next
|
||||||
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
|
set $SHOW_VOL pactl get-sink-volume @DEFAULT_SINK@ | head -n 1| awk '{print substr($5, 1, length($5)-1)}' > $WOBSOCK
|
||||||
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
|
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% && $SHOW_VOL
|
||||||
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && $SHOW_VOL
|
||||||
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
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:
|
# Moving around:
|
||||||
# Move your focus around
|
# Move your focus around
|
||||||
@@ -237,5 +241,9 @@ exec syncthing
|
|||||||
exec swaync
|
exec swaync
|
||||||
exec fcitx5
|
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 some defaults
|
||||||
include /etc/sway/config.d/*
|
include /etc/sway/config.d/*
|
||||||
|
|||||||
Reference in New Issue
Block a user