better keybindings

This commit is contained in:
ari committed 2026-09-18 12:09:50 -04:00
1 parent 4b1b3f76e5
commit 12fe9c4603
6 files changed
+104 -14

No files matched your search

-2
View File
@@ -26,8 +26,6 @@ binds {
// =========================
Mod+Shift+Up hotkey-overlay-title="PlayerCtrl: Volume Up" { spawn "dms" "ipc" "audio" "increment" "1"; }
Mod+Shift+Down hotkey-overlay-title="PlayerCtrl: Volume Down" { spawn "dms" "ipc" "audio" "decrement" "1"; }
Mod+Shift+Right hotkey-overlay-title="PlayerCtrl: Next" { spawn "playerctl" "next"; }
Mod+Shift+Left hotkey-overlay-title="PlayerCtrl: Previous" { spawn "playerctl" "previous"; }
XF86AudioRaiseVolume allow-when-locked=true { spawn "dms" "ipc" "audio" "increment" "1"; }
XF86AudioLowerVolume allow-when-locked=true { spawn "dms" "ipc" "audio" "decrement" "1"; }
XF86AudioMute allow-when-locked=true { spawn "dms" "ipc" "call" "audio" "mute"; }
-4
View File
@@ -8,10 +8,6 @@ binds {
Mod+P { spawn "sh" "-c" "grim -g \"$(slurp)\" - | satty -f -"; }
XF86AudioRaiseVolume allow-when-locked=true { spawn "noctalia" "msg" "volume-up"; }
XF86AudioLowerVolume allow-when-locked=true { spawn "noctalia" "msg" "volume-down"; }
XF86AudioMute allow-when-locked=true { spawn "noctalia" "msg" "volume-mute"; }
// XF86AudioMicMute allow-when-locked=true { spawn "noctalia" "msg" "call" "audio" "micmute"; }
XF86MonBrightnessUp allow-when-locked=true { spawn "noctalia" "msg" "brightness-up"; }
XF86MonBrightnessDown allow-when-locked=true { spawn "noctalia" "msg" "brightness-down"; }
}
+15
View File
@@ -41,6 +41,21 @@ binds {
Mod+V { toggle-window-floating; }
Mod+C { center-column; }
// =========================
// Basic Sound Control
// =========================
Mod+Shift+Right hotkey-overlay-title="PlayerCtrl: Next" { spawn "playerctl" "next"; }
Mod+Shift+Left hotkey-overlay-title="PlayerCtrl: Previous" { spawn "playerctl" "previous"; }
Mod+Shift+Up allow-when-locked=true { spawn "playerctl" "volume" "0.1+"; }
Mod+Shift+Down allow-when-locked=true { spawn "playerctl" "volume" "0.1-"; }
Mod+Shift+Space allow-when-locked=true { spawn "playerctl" "play-pause"; }
Mod+Shift+M allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
Mod+Shift+S allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
XF86AudioRaiseVolume allow-when-locked=true { spawn "playerctl" "volume" "0.1+"; }
XF86AudioLowerVolume allow-when-locked=true { spawn "playerctl" "volume" "0.1-"; }
XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
// =========================
// Resizing
// =========================
+1 -1
View File
@@ -57,7 +57,7 @@ hl.bind("F9", CarouselApps.jellyfin) -- PVR
---- play controls
hl.bind("XF86AudioRewind", hl.dsp.exec_cmd("playerctl previous"))
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play"))
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"))
hl.bind("XF86AudioForward", hl.dsp.exec_cmd("playerctl next"))
hl.bind("XF86AudioStop", hl.dsp.exec_cmd("playerctl stop"))
Generated
+85 -6
View File
@@ -659,6 +659,22 @@
"type": "github"
}
},
"flake-compat_8": {
"flake": false,
"locked": {
"lastModified": 1767039857,
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
"owner": "NixOS",
"repo": "flake-compat",
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
@@ -932,6 +948,28 @@
"type": "github"
}
},
"git-hooks_3": {
"inputs": {
"flake-compat": "flake-compat_7",
"nixpkgs": [
"hermenix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1789514889,
"narHash": "sha256-PFD1nxptCXJyJoiYO1gf/5Vv43yqGpHtMC6LUhl9/pQ=",
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "59f4ca0d063a1a3ec722c88b51a33004862e5379",
"type": "github"
},
"original": {
"owner": "cachix",
"repo": "git-hooks.nix",
"type": "github"
}
},
"gitignore": {
"inputs": {
"nixpkgs": [
@@ -994,15 +1032,18 @@
"inputs": {
"determinate": "determinate_2",
"devenv": "devenv",
"git-hooks": "git-hooks_3",
"nixos-generators": "nixos-generators",
"nixpkgs": "nixpkgs_7"
"nixpkgs": "nixpkgs_7",
"nutest": "nutest",
"treefmt-nix": "treefmt-nix_2"
},
"locked": {
"lastModified": 1789665660,
"narHash": "sha256-AzozWfAWTfImpSU4sWAwM7l/7wYem9n7y+7R0VzO97U=",
"lastModified": 1789680476,
"narHash": "sha256-UOBb4V5OxAKOpgB6N8lRnbtkTRrwTaVzmvcxfmwyisI=",
"ref": "refs/heads/main",
"rev": "e07ae98c0bf17b77cbf5a3c8b8b0c59ea08b97c0",
"revCount": 26,
"rev": "a538f70bf7cc3d0535f1d5996eb8d807b988621e",
"revCount": 36,
"type": "git",
"url": "ssh://gitea@minipc1.lab.internal:22/ari/hermenix.git"
},
@@ -2205,6 +2246,23 @@
"type": "github"
}
},
"nutest": {
"flake": false,
"locked": {
"lastModified": 1783281957,
"narHash": "sha256-IkDGL0yGIapatoaJiqjk+6CALIRe7FF1Pq2/5zHkIqw=",
"owner": "vyadh",
"repo": "nutest",
"rev": "c46af12bc6e3819b95d69f54f35526ca3e5810d6",
"type": "github"
},
"original": {
"owner": "vyadh",
"ref": "v1.2.0",
"repo": "nutest",
"type": "github"
}
},
"pre-commit-hooks": {
"inputs": {
"flake-compat": "flake-compat_3",
@@ -2230,7 +2288,7 @@
},
"pre-commit-hooks_2": {
"inputs": {
"flake-compat": "flake-compat_7",
"flake-compat": "flake-compat_8",
"nixpkgs": [
"hyprland",
"nixpkgs"
@@ -2640,6 +2698,27 @@
"type": "github"
}
},
"treefmt-nix_2": {
"inputs": {
"nixpkgs": [
"hermenix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1786901030,
"narHash": "sha256-WSFCsDSE5ffgD2MqzkM2CYjeFiKhRF/dJUN8uedb6YE=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "27b3b12a8e6375f28ebe122f07d230ca5459bbfa",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
},
"uv2nix": {
"inputs": {
"nixpkgs": [
+3 -1
View File
@@ -58,9 +58,11 @@
environment.systemPackages = with pkgs; [
# my goodies
skygqts
# --- 4. CEC control over the Framework HDMI card ---
# hdmi cec
v4l-utils
libcec
# sound control
playerctl
];
# Flatpaks