From ec5c4e2ef55d479f2e6bfeb14a66a21b8be4f634 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Fri, 23 Aug 2024 17:01:47 -0400 Subject: [PATCH] clean up + brightness ctl --- configs/hypr/hyprland.d/keybindings.conf | 56 ++---------------------- modules/nixos/desktop/hyprland.nix | 1 + 2 files changed, 5 insertions(+), 52 deletions(-) diff --git a/configs/hypr/hyprland.d/keybindings.conf b/configs/hypr/hyprland.d/keybindings.conf index f5f3e32..76adb27 100644 --- a/configs/hypr/hyprland.d/keybindings.conf +++ b/configs/hypr/hyprland.d/keybindings.conf @@ -7,13 +7,13 @@ bind = $mainMod, C, exec, $editor bind = $mainMod, F, exec, $filemanager bind = $mainMod, space, exec, $applauncher bind = $mainMod, R, exec, $cmdlauncher -# bind = $mainMod, X, exec, $exit # My Binds bind = $mainMod, T, exec, $term bind = $mainMod, Q, killactive, bind = ALT, F4, killactive, bind = $mainMod, V, togglefloating, +bind = $mainMod SHIFT, F, fullscreen # Screen shot bind = $mainMod, s, exec, hyprshot -m region -r | swappy -f - @@ -49,54 +49,6 @@ bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow bindm = $mainMod, ALT_L, resizewindow - -# # - - - -# # Show/hide the dock, if started -# bind = ALT, D, exec, pkill -10 nwg-dock - -# bind = $mainMod, L, exec, nwg-lock # screen locker, according to shell settings` -# bind = $mainMod, F1, exec, nwg-shell-help # help window - -bind = $mainMod SHIFT, F, fullscreen -# bind = $mainMod SHIFT, M, exit, -# bind = $mainMod, Space, togglefloating, -# bind = $mainMod, V, togglefloating, -# bind = $mainMod SHIFT, C, exec, hyprctl reload # reload Hyprland -# bind = $mainMod SHIFT, Z, movetoworkspace, special # move to the special workspace -# bind = $mainMod, Z, togglespecialworkspace # show/hide special workspace - -# bind = ALT, Tab, togglesplit, # (dwindle) -# bind = $mainMod, P, pseudo, # (dwindle) -# bind = $mainMod, A, layoutmsg, cycleprev # (master) -# bind = $mainMod, S, layoutmsg, swapwithmaster # (master) -# bind = $mainMod, D, layoutmsg, cyclenext # (master) - -# # SCREENSHOT (/usr/local/bin/screenshot) -# bind = , Print, exec, screenshot fullscreen # full screen -# bind = CONTROL, Print, exec, screenshot display # focused display -# bind = $mainMod SHIFT+CONTROL, Print, exec, screenshot focused # focused window -# bind = SHIFT+CONTROL, Print, exec, screenshot swappy # selected region -> swappy -# # bind = SHIFT+CONTROL, Print, exec, screenshot region # or selected region w/o swappy - -# # MOVE FOCUS with mainMod + arrow keys -# bind = $mainMod, left, movefocus, l -# bind = $mainMod, right, movefocus, r -# bind = $mainMod, up, movefocus, u -# bind = $mainMod, down, movefocus, d - -# # MOVE WINDOW with mainMod SHIFT + arrow keys -# bind = $mainMod SHIFT, left, movewindow, l -# bind = $mainMod SHIFT, right, movewindow, r -# bind = $mainMod SHIFT, up, movewindow, u -# bind = $mainMod SHIFT, down, movewindow, d - -# # SCROLL THROUGH EXISTING WORKSPACES with mainMod + scroll -# bind = $mainMod, mouse_down, workspace, e+1 -# bind = $mainMod, mouse_up, workspace, e-1 - -# # MOVE/RESIZE WINDOWS with mainMod + LMB/RMB and dragging -# bindm = $mainMod, mouse:272, movewindow -# bindm = $mainMod, mouse:273, resizewindow +# Brigthness +bind = ,XF86MonBrightnessDown, exec, brightnessctl s 20%- +bind = ,XF86MonBrightnessUp, exec, brightnessctl s +20% diff --git a/modules/nixos/desktop/hyprland.nix b/modules/nixos/desktop/hyprland.nix index 0ae83b5..62d9b4f 100644 --- a/modules/nixos/desktop/hyprland.nix +++ b/modules/nixos/desktop/hyprland.nix @@ -51,6 +51,7 @@ in swww # wallpaper service waybar # top bar hypridle # idle watch + brightnessctl # brightness ctl # networking networkmanagerapplet