Compare commits

...

3 Commits

2 changed files with 18 additions and 10 deletions

View File

@ -131,7 +131,6 @@ device:epic-mouse-v1 {
windowrule=float,title:Volume windowrule=float,title:Volume
windowrule=size 300 100,title:Volume windowrule=size 300 100,title:Volume
windowrule=move 100%-375 75,title:Volume windowrule=move 100%-375 75,title:Volume
windowrule=noanim,title:Volume
windowrule=rounding 35,title:Volume windowrule=rounding 35,title:Volume
windowrule=nofocus,title:Volume windowrule=nofocus,title:Volume
@ -140,12 +139,12 @@ $mainMod = ALT
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Return, exec, alacritty bind = $mainMod, Return, exec, alacritty
bind = $mainMod, Q, killactive, bind = $mainMod_SHIFT, Q, killactive,
bind = $mainMod, M, exit, bind = $mainMod, M, exit,
bind = $mainMod_SHIFT, L, exec, screenlock bind = $mainMod_SHIFT, L, exec, screenlock
#bind = $mainMod, E, exec, dolphin #bind = $mainMod, E, exec, dolphin
bind = $mainMod, Space, togglefloating, bind = $mainMod, Space, togglefloating,
bind = $mainMod, D, exec, wofi --show drun bind = $mainMod, D, exec, trigger-findex
bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, E, togglesplit, # dwindle bind = $mainMod, E, togglesplit, # dwindle
bind = $mainMod, F, fullscreen, bind = $mainMod, F, fullscreen,
@ -213,3 +212,5 @@ monitor=DP-3,2560x1440@59.95100,5666x0,1.0,transform,3
exec-once=hyprpaper exec-once=hyprpaper
exec-once=waybar exec-once=waybar
exec-once=findex-daemon
exec-once=nextcloud

View File

@ -1,9 +1,16 @@
#!/bin/sh #!/bin/sh
# Pops up a window showing the current volume
alacritty -t "Volume" \ SOCKET="/tmp/volume_indicator"
--class "volume_indicator" \
--config-file "$HOME/.config/alacritty/silent.yml" \ # If theres an existing volume_indicator running, prod the socket
--command volume_indicator \ # Otherwise, start a new volume_indicator instance.
--cols 30 \ nc -U "$SOCKET" 2>/dev/null || \
--rows 3 \ ba alacritty -t "Volume" \
--timeout 1000 --class "volume_indicator" \
--config-file "$HOME/.config/alacritty/silent.yml" \
--command volume_indicator \
--cols 30 \
--rows 3 \
--socket "$SOCKET" \
--timeout 2000