From fb11abf702d714247a636b19aab845069f81e29e Mon Sep 17 00:00:00 2001 From: iFargle Date: Thu, 17 Aug 2023 12:03:04 +0900 Subject: [PATCH] Keybinds --- configuration.nix | 3 +- .../home-manager/hyprland-conf.nix | 29 +++++++++++++++++-- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index 45f5ddb0..82e514ff 100644 --- a/configuration.nix +++ b/configuration.nix @@ -35,7 +35,8 @@ users.users.albert = { isNormalUser = true; description = "Albert J. Copeland"; - extraGroups = [ "networkmanager" "wheel" ]; + extraGroups = [ "networkmanager" "wheel" "video" ]; + # video is required for the "light" command to work hashedPassword = "$y$j9T$wKLsIWaA4Gf63RvjedwLJ0$EHKL6BBJV0CAxEKcHHjaBqW085KJ/MGvmbyWzmcWOy6"; }; diff --git a/hosts/nixos-laptop/home-manager/hyprland-conf.nix b/hosts/nixos-laptop/home-manager/hyprland-conf.nix index 5e2a7cd0..f702a061 100644 --- a/hosts/nixos-laptop/home-manager/hyprland-conf.nix +++ b/hosts/nixos-laptop/home-manager/hyprland-conf.nix @@ -61,7 +61,7 @@ shadow_render_power = 3 col.shadow = rgba(1a1a1aee) blur { - size = 12 + size = 8 passes = 4 ignore_opacity = true } @@ -154,6 +154,30 @@ bind = $mainMod SHIFT, right, movetoworkspace, e+1 bind = $mainMod SHIFT, left, movetoworkspace, e-1 # Set up the FN keys: + # F1 - Mute + bind = , XF86AudioMute, exec, amixer set Master toggle + # F2 - Volume Down + bind = , XF86AudioLowerVolume, exec, amixer set Master 3%- + # F3 - Volume Up + bind = , XF86AudioRaiseVolume, exec, amixer set Master 3%+ + # F4 - Mute Microphone + bind = , XF86AudioMicMute, exec, amixer set Capture toggle + # F5 - Brightness Down + bind = , XF86MonBrightnessDown, exec, light -U 5 + # F6 - Brightness Up + bind = , XF86MonBrightnessUp, exec, light -A 5 + # F7 - External Displays + # bind = , XF86 + # F8 - Airplane Mode + # bind = , XF86 + # F9 - Notifications? + # bind = , XF86 + # F10 - Call Answer? + # bind = , XF86 + # F11 - Call Hang Up? + # bind = , XF86 + # F12 - Favorites? + # bind = , XF86 # Use rofi as an alt-tab switcher bind = ALT-L TAB, , exec, rofi -show window @@ -169,7 +193,8 @@ #!/usr/bin/env bash swww init & # Sets a random wallpaper - swww img /etc/nixos/git/desktops/wallpapers/gruvbox/wallpaper$((1 + $RANDOM % 11)).jpg & + WALLPAPER_DIR=/etc/nixos/git/desktops/wallpapers/gruvbox + swww img $WALLPAPER_DIR/wallpaper$((1 + $RANDOM % $(ls $WALLPAPER_DIR | wc -l))).jpg & nm-applet --indicator & waybar & mako