From: Andre Ramnitz Date: Fri, 1 Nov 2024 22:56:11 +0000 (+0100) Subject: hypr: improve keybinds X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=9826328c78ef3db247c96faf27c375bbc4df5167;p=dotfiles.git hypr: improve keybinds - mod+w to toggle the visibility of waybar - add more key combos to move windows to other wkspcs - clean-up hyprpaper.conf (still not yet convinced) - update helper scripts --- diff --git a/dot-config/hypr/fragments/keybinds.conf b/dot-config/hypr/fragments/keybinds.conf index 40ba605c..0bd794ea 100644 --- a/dot-config/hypr/fragments/keybinds.conf +++ b/dot-config/hypr/fragments/keybinds.conf @@ -24,6 +24,7 @@ bind = $mainmod, S, togglesplit, # dwindle bind = $mainmod Shift, S, swapsplit, # dwindle bind = $mainmod SHIFT, S, layoutmsg, preselect d # dwindle bind = $mainmod, G, togglegroup +bind = $mainmod, W, exec, pkill -SIGUSR1 waybar bind = $mainmod SHIFT, G, lockactivegroup, toggle bind = $mainmod, TAB, exec, ~/.config/hypr/scripts/windowswitch-rg.sh bind = $mainmod, grave, exec, ~/.config/hypr/scripts/RofiEmoji.sh @@ -82,19 +83,20 @@ bind = $mainmod SHIFT, K, movewindow, u bind = $mainmod SHIFT, J, movewindow, d # Move windows or groups with mainMod + Shift + arrow keys -bind = $mainmod CTRL, left, movewindoworgroup, l -bind = $mainmod CTRL, right, movewindoworgroup, r -bind = $mainmod CTRL, up, movewindoworgroup, u -bind = $mainmod CTRL, down, movewindoworgroup, d -bind = $mainmod CTRL, H, movewindoworgroup, l -bind = $mainmod CTRL, L, movewindoworgroup, r -bind = $mainmod CTRL, K, movewindoworgroup, u -bind = $mainmod CTRL, J, movewindoworgroup, d +bind = $mainmod SHIFT CTRL, left, movewindoworgroup, l +bind = $mainmod SHIFT CTRL, right, movewindoworgroup, r +bind = $mainmod SHIFT CTRL, up, movewindoworgroup, u +bind = $mainmod SHIFT CTRL, down, movewindoworgroup, d +bind = $mainmod SHIFT CTRL, H, movewindoworgroup, l +bind = $mainmod SHIFT CTRL, L, movewindoworgroup, r +bind = $mainmod SHIFT CTRL, K, movewindoworgroup, u +bind = $mainmod SHIFT CTRL, J, movewindoworgroup, d # move through group windows bind = $mainmod, O, changegroupactive, f bind = $mainmod, U, changegroupactive, b - +bind = $suremod, O, changegroupactive, f +bind = $suremod, U, changegroupactive, b # workspaces # ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── @@ -111,16 +113,28 @@ bind = $mainmod, 9, workspace, 9 bind = $mainmod, 0, workspace, 10 # Move active window to a workspace with mainMod + SHIFT + [0-9] -bind = $mainmod SHIFT, 1, movetoworkspacesilent, 1 -bind = $mainmod SHIFT, 2, movetoworkspacesilent, 2 -bind = $mainmod SHIFT, 3, movetoworkspacesilent, 3 -bind = $mainmod SHIFT, 4, movetoworkspacesilent, 4 -bind = $mainmod SHIFT, 5, movetoworkspacesilent, 5 -bind = $mainmod SHIFT, 6, movetoworkspacesilent, 6 -bind = $mainmod SHIFT, 7, movetoworkspacesilent, 7 -bind = $mainmod SHIFT, 8, movetoworkspacesilent, 8 -bind = $mainmod SHIFT, 9, movetoworkspacesilent, 9 -bind = $mainmod SHIFT, 0, movetoworkspacesilent, 10 +bind = $mainmod SHIFT, 1, movetoworkspace, 1 +bind = $mainmod SHIFT, 2, movetoworkspace, 2 +bind = $mainmod SHIFT, 3, movetoworkspace, 3 +bind = $mainmod SHIFT, 4, movetoworkspace, 4 +bind = $mainmod SHIFT, 5, movetoworkspace, 5 +bind = $mainmod SHIFT, 6, movetoworkspace, 6 +bind = $mainmod SHIFT, 7, movetoworkspace, 7 +bind = $mainmod SHIFT, 8, movetoworkspace, 8 +bind = $mainmod SHIFT, 9, movetoworkspace, 9 +bind = $mainmod SHIFT, 0, movetoworkspace, 10 + +# Move active window in the background to a workspace with mainMod + CRTL + [0-9] +bind = $mainmod CTRL, 1, movetoworkspacesilent, 1 +bind = $mainmod CTRL, 2, movetoworkspacesilent, 2 +bind = $mainmod CTRL, 3, movetoworkspacesilent, 3 +bind = $mainmod CTRL, 4, movetoworkspacesilent, 4 +bind = $mainmod CTRL, 5, movetoworkspacesilent, 5 +bind = $mainmod CTRL, 6, movetoworkspacesilent, 6 +bind = $mainmod CTRL, 7, movetoworkspacesilent, 7 +bind = $mainmod CTRL, 8, movetoworkspacesilent, 8 +bind = $mainmod CTRL, 9, movetoworkspacesilent, 9 +bind = $mainmod CTRL, 0, movetoworkspacesilent, 10 # Scroll through existing workspaces with mainMod + scroll bind = $mainmod, mouse_down, workspace, e+1 diff --git a/dot-config/hypr/hyprland.conf b/dot-config/hypr/hyprland.conf index c3593931..56e6b800 100644 --- a/dot-config/hypr/hyprland.conf +++ b/dot-config/hypr/hyprland.conf @@ -81,9 +81,9 @@ general { gaps_in = 8 gaps_out = 8 col.active_border = 0xff$base0C - col.inactive_border = 0x77$base04 - col.nogroup_border_active = 0xff$base08 - col.nogroup_border = 0x77$base08 + col.inactive_border = 0x44$base0C + col.nogroup_border_active = 0xff$base0E + col.nogroup_border = 0x33$base0E layout = dwindle @@ -170,9 +170,9 @@ group { merge_groups_on_drag = 0 insert_after_current = 0 col.border_active = 0xff$base0A - col.border_inactive = 0xAA$base0A + col.border_inactive = 0x44$base0A col.border_locked_active = 0xff$base09 - col.border_locked_inactive = 0x77$base09 + col.border_locked_inactive = 0x44$base09 groupbar { enabled = 0 height = 22 diff --git a/dot-config/hypr/hyprpaper.conf b/dot-config/hypr/hyprpaper.conf index 4d83eefc..71790a02 100644 --- a/dot-config/hypr/hyprpaper.conf +++ b/dot-config/hypr/hyprpaper.conf @@ -1,39 +1,13 @@ -preload = ~/Bilder/Wallpapers/5120x1440-IMG_0065.webp -preload = ~/Bilder/Wallpapers/1329165.jpg -preload = ~/Bilder/Wallpapers/1329200.jpg -preload = ~/Bilder/Wallpapers/1irjg5r6br6b1.jpg -preload = ~/Bilder/Wallpapers/1nk4fkke50pd1.jpeg -preload = ~/Bilder/Wallpapers/5120x1440-aerjl345234.webp -preload = ~/Bilder/Wallpapers/5120x1440-Hyprland_wall0_ultrawide.png -preload = ~/Bilder/Wallpapers/5120x1440-Hyprland_wall1_ultrawide.png -preload = ~/Bilder/Wallpapers/5120x1440-iu34ljlsdfl.webp -preload = ~/Bilder/Wallpapers/5120x1440-jk3io4uiou89.webp -preload = ~/Bilder/Wallpapers/5120x1440-jkoljfds89.webp -preload = ~/Bilder/Wallpapers/5120x1440-kj3l4j987fs.webp -preload = ~/Bilder/Wallpapers/5120x1440-ljfal3wkjr3laf.JPG -preload = ~/Bilder/Wallpapers/5120x1440-rl0b9avw791b1.jpg -preload = ~/Bilder/Wallpapers/5120x1440-Space.jpeg -preload = ~/Bilder/Wallpapers/5120x1440_farbstrubbel.jpeg -preload = ~/Bilder/Wallpapers/861746.jpg -preload = ~/Bilder/Wallpapers/deep-blue-sea-5120x1440.jpg -preload = ~/Bilder/Wallpapers/default.jpg -preload = ~/Bilder/Wallpapers/desert-dunes-landscape-ultrawide-hd-wallpaper-0702c899869763077e4e5db93e071906.jpg -preload = ~/Bilder/Wallpapers/flying-turtle-5120x1440.jpg -preload = ~/Bilder/Wallpapers/foggy-layers-5120x1440.jpg -preload = ~/Bilder/Wallpapers/iceland-caps-5120x1440.jpg -preload = ~/Bilder/Wallpapers/into-the-woods-5120x1440.jpg -preload = ~/Bilder/Wallpapers/macos-mojave-dark-mode-5120x1440.jpg -preload = ~/Bilder/Wallpapers/MagicNeonRays.webp -preload = ~/Bilder/Wallpapers/morning-mountain-5120x1440.jpg -preload = ~/Bilder/Wallpapers/sand-storm-5120x1440.jpg -preload = ~/Bilder/Wallpapers/shooting-star-5120x1440.jpg -preload = ~/Bilder/Wallpapers/simvoly-osminog-cio2-pauk-atom-lego-kniga-lapka-vai-fai-ochk.jpg -preload = ~/Bilder/Wallpapers/ultrawide-32-9-hd-wallpaper-87f2b8a946d7c327be3e4d69cec7c9f6.jpg -preload = ~/Bilder/Wallpapers/ultrawide-abstract-pixel-sorting-hd-wallpaper-57f2a89906472397ce1e9d690e6759d6.jpg -preload = ~/Bilder/Wallpapers/ultrawide-playstation-video-games-hd-wallpaper-a7724869b60713275e7e3d49cec7c986.jpg -preload = ~/Bilder/Wallpapers/ultrawide-superultrawide-hd-wallpaper-45e20c30d7efe89553ba71b762c6c224.jpg -preload = ~/Bilder/Wallpapers/urban-escape-5120x1440.jpg +preload = ~/Bilder/Wallpapers-Selection/1.jpg +preload = ~/Bilder/Wallpapers-Selection/2.jpg +preload = ~/Bilder/Wallpapers-Selection/3.jpeg +preload = ~/Bilder/Wallpapers-Selection/4.webp +preload = ~/Bilder/Wallpapers-Selection/5.jpg +preload = ~/Bilder/Wallpapers-Selection/6.jpg +preload = ~/Bilder/Wallpapers-Selection/a.jpg +preload = ~/Bilder/Wallpapers-Selection/b.jpg +preload = ~/Bilder/Wallpapers-Selection/c.jpg +preload = ~/Bilder/Wallpapers-Selection/d.jpg -wallpaper = DP-2,~/Bilder/Wallpapers/ultrawide-32-9-hd-wallpaper-87f2b8a946d7c327be3e4d69cec7c9f6.jpg ipc = on -splash = 1 +splash = 0 diff --git a/dot-config/hypr/scripts/gammarelay-auto-temp.py b/dot-config/hypr/scripts/gammarelay-auto-temp.py index 75a3bd77..ded2bed2 100755 --- a/dot-config/hypr/scripts/gammarelay-auto-temp.py +++ b/dot-config/hypr/scripts/gammarelay-auto-temp.py @@ -12,8 +12,8 @@ def mk_time(hours, minutes, seconds=0): TEMP_DAY = 6500.0 TEMP_NIGHT = 3800.0 -DAWN_TIME = mk_time( 7, 00) # 9:00 (Should be > WINDOW) -DUSK_TIME = mk_time(20, 00) # 19:00 (Shoulbe be > WINDOW + DAWN_TIME) +DAWN_TIME = mk_time( 7, 25) # 9:00 (Should be > WINDOW) +DUSK_TIME = mk_time(17, 10) # 19:00 (Shoulbe be > WINDOW + DAWN_TIME) WINDOW = mk_time( 0, 15) # 15m (The time during which the temperature changes gradually until it reaches the desired value) temp = None