From 417524307d982da84156fa40018d499ec41d7f57 Mon Sep 17 00:00:00 2001 From: goodhumored Date: Fri, 16 Aug 2024 11:00:31 +0300 Subject: [PATCH] wob fixed --- .config/hypr/conf/autostart.conf | 1 + .config/hypr/conf/keybindings.conf | 13 +++++++++---- .config/hypr/conf/start-wob.sh | 1 + .config/scripts/set_brightness.sh | 5 +++++ 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100755 .config/hypr/conf/start-wob.sh create mode 100755 .config/scripts/set_brightness.sh diff --git a/.config/hypr/conf/autostart.conf b/.config/hypr/conf/autostart.conf index 72277be..eccc2cb 100644 --- a/.config/hypr/conf/autostart.conf +++ b/.config/hypr/conf/autostart.conf @@ -6,4 +6,5 @@ exec-once = copyq --start-server exec-once = /usr/lib/pam_kwallet_init & blueman-applet & hypridle & hyprpaper & nm-applet & waybar exec-once = dunst exec-once = blueman-applet +exec-once = ~/.config/hypr/conf/autostart.conf diff --git a/.config/hypr/conf/keybindings.conf b/.config/hypr/conf/keybindings.conf index 1aecdfb..69771ff 100644 --- a/.config/hypr/conf/keybindings.conf +++ b/.config/hypr/conf/keybindings.conf @@ -10,6 +10,7 @@ $mainMod = SUPER # Sets "Windows" key as main modifier bind = $mainMod, T, exec, $terminal # terminal +bind = $mainMod, F, exec, fullscreen # fullscreen bind = $mainMod, Q, killactive, # kill window bind = $mainMod, E, exec, $fileManager # file manager bind = $mainMod, V, togglefloating, # toggle float @@ -19,6 +20,10 @@ bind = $mainMod, DELETE, exit, # pseudo bind = $mainMod, R, togglesplit, # toggle split bind = $mainMod CTRL, L, exec, hyprlock # lock screen + +bind = CTRL ALT $mainMod SHIFT, comma, movecurrentworkspacetomonitor, l +bind = CTRL ALT $mainMod SHIFT, period, movecurrentworkspacetomonitor, r + # ────────────────────────── window move focus ──────────────────────── bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r @@ -82,10 +87,10 @@ bind = SHIFT, Print, exec, grimblast copy screen --freeze --notify --cursor # l -> do stuff even when locked # e -> repeats when key is held -bindle=, XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5% -bindle=, XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5% -bindle=, XF86MonBrightnessUp, exec, brightnessctl set +10% -bindle=, XF86MonBrightnessDown, exec, brightnessctl set 10%- +bindle=, XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5% & echo $(pactl get-sink-volume @DEFAULT_SINK@ | grep -oP "\d{1,3}(?=%)" | head -1) >> /tmp/wobpipe +bindle=, XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5% & echo $(pactl get-sink-volume @DEFAULT_SINK@ | grep -oP "\d{1,3}(?=%)" | head -1) >> /tmp/wobpipe +bindle=, XF86MonBrightnessUp, exec, ~/.config/scripts/set_brightness.sh +10% +bindle=, XF86MonBrightnessDown, exec, ~/.config/scripts/set_brightness.sh 10%- bindl=, XF86AudioMute, exec, amixer set Master toggle bindl=, XF86AudioPlay, exec, playerctl play-pause bindl=, XF86AudioPause, exec, playerctl play-pause diff --git a/.config/hypr/conf/start-wob.sh b/.config/hypr/conf/start-wob.sh new file mode 100755 index 0000000..24af21c --- /dev/null +++ b/.config/hypr/conf/start-wob.sh @@ -0,0 +1 @@ +tail -f /tmp/wobpipe diff --git a/.config/scripts/set_brightness.sh b/.config/scripts/set_brightness.sh new file mode 100755 index 0000000..68f46b5 --- /dev/null +++ b/.config/scripts/set_brightness.sh @@ -0,0 +1,5 @@ +result="$(brightnessctl set $1)" +current_perc="$(echo "$result" | grep -oP "\d{1,3}(?=%)")" +echo "$result" +echo "\"$current_perc\"" +echo "$current_perc" >> /tmp/wobpipe