From c5943979fecb14323de5959fc76859857422e741 Mon Sep 17 00:00:00 2001 From: Emmet Date: Wed, 16 Aug 2023 21:33:00 -0500 Subject: [PATCH] Added a lot of "normal" expected-to-work keybinds --- user/shell/cli-collection.nix | 10 ++++++++++ user/wm/hyprland/hyprland.nix | 12 ++++++++++++ 2 files changed, 22 insertions(+) diff --git a/user/shell/cli-collection.nix b/user/shell/cli-collection.nix index 6c3910d..b1f8e2c 100644 --- a/user/shell/cli-collection.nix +++ b/user/shell/cli-collection.nix @@ -24,6 +24,16 @@ (pkgs.callPackage ../pkgs/ytsub.nix { }) (pkgs.callPackage ../pkgs/russ.nix { }) (pkgs.callPackage ../pkgs/pokemon-colorscripts.nix { }) + (pkgs.writeShellScriptBin "airplane-mode" '' + #!/bin/sh + connectivity="$(nmcli n connectivity)" + if [ "$connectivity" == "full" ] + then + nmcli n off + else + nmcli n on + fi + '') ]; imports = [ diff --git a/user/wm/hyprland/hyprland.nix b/user/wm/hyprland/hyprland.nix index 110913f..b805c6c 100644 --- a/user/wm/hyprland/hyprland.nix +++ b/user/wm/hyprland/hyprland.nix @@ -50,6 +50,18 @@ bind=SHIFTCTRL,code:107,exec,grim -g "$(slurp -o)" - | wl-copy bind=SUPERCTRL,code:107,exec,grim - | wl-copy + bind=,code:122,exec,pamixer -d 10 + bind=,code:123,exec,pamixer -i 10 + bind=,code:121,exec,pamixer -t + bind=,code:256,exec,pamixer --default-source -t + bind=SHIFT,code:122,exec,pamixer --default-source -d 10 + bind=SHIFT,code:123,exec,pamixer --default-source -i 10 + bind=,code:232,exec,brightnessctl set 15- + bind=,code:233,exec,brightnessctl set +15 + bind=,code:237,exec,brightnessctl --device='asus::kbd_backlight' set 1- + bind=,code:238,exec,brightnessctl --device='asus::kbd_backlight' set +1 + bind=,code:255,exec,airplane-mode + bind=SUPER,H,movefocus,l bind=SUPER,J,movefocus,d bind=SUPER,K,movefocus,u