Compare commits
No commits in common. "f5ac3d34ac104a0cedf5359e043e92994624a797" and "9c23eb94605545948d70d568fe1bccf988feac4f" have entirely different histories.
f5ac3d34ac
...
9c23eb9460
3 changed files with 22 additions and 56 deletions
|
@ -6,7 +6,6 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
audio = "~/.local/bin/audio";
|
|
||||||
clipse = "${pkgs.clipse}/bin/clipse";
|
clipse = "${pkgs.clipse}/bin/clipse";
|
||||||
codium = "${config.home-manager.users.${config.custom.username}.programs.vscode.package}/bin/codium";
|
codium = "${config.home-manager.users.${config.custom.username}.programs.vscode.package}/bin/codium";
|
||||||
firefox-esr = "${config.home-manager.users.${config.custom.username}.programs.firefox.finalPackage}/bin/firefox-esr";
|
firefox-esr = "${config.home-manager.users.${config.custom.username}.programs.firefox.finalPackage}/bin/firefox-esr";
|
||||||
|
@ -14,7 +13,6 @@ with lib; let
|
||||||
hyprctl = "${pkgs.hyprland}/bin/hyprctl";
|
hyprctl = "${pkgs.hyprland}/bin/hyprctl";
|
||||||
hyprlock = "${config.home-manager.users.${config.custom.username}.programs.hyprlock.package}/bin/hyprlock";
|
hyprlock = "${config.home-manager.users.${config.custom.username}.programs.hyprlock.package}/bin/hyprlock";
|
||||||
hyprpicker = "${pkgs.hyprpicker}/bin/hyprpicker";
|
hyprpicker = "${pkgs.hyprpicker}/bin/hyprpicker";
|
||||||
inhibit = "~/.local/bin/inhibit";
|
|
||||||
jq = "${pkgs.jq}/bin/jq";
|
jq = "${pkgs.jq}/bin/jq";
|
||||||
kill = "${pkgs.procps}/bin/kill";
|
kill = "${pkgs.procps}/bin/kill";
|
||||||
kitty = "${config.home-manager.users.${config.custom.username}.programs.kitty.package}/bin/kitty";
|
kitty = "${config.home-manager.users.${config.custom.username}.programs.kitty.package}/bin/kitty";
|
||||||
|
@ -30,17 +28,13 @@ with lib; let
|
||||||
playerctl = "${pkgs.playerctl}/bin/playerctl";
|
playerctl = "${pkgs.playerctl}/bin/playerctl";
|
||||||
rofi-rbw = "${pkgs.rofi-rbw}/bin/rofi-rbw";
|
rofi-rbw = "${pkgs.rofi-rbw}/bin/rofi-rbw";
|
||||||
rm = "${pkgs.coreutils}/bin/rm";
|
rm = "${pkgs.coreutils}/bin/rm";
|
||||||
screenshot = "~/.local/bin/screenshot";
|
|
||||||
sleep = "${pkgs.coreutils}/bin/sleep";
|
sleep = "${pkgs.coreutils}/bin/sleep";
|
||||||
steam = "${config.programs.steam.package}/bin/steam";
|
steam = "${config.programs.steam.package}/bin/steam";
|
||||||
swayosd-client = "${pkgs.swayosd}/bin/swayosd-client";
|
swayosd-client = "${pkgs.swayosd}/bin/swayosd-client";
|
||||||
systemctl = "${pkgs.systemd}/bin/systemctl";
|
systemctl = "${pkgs.systemd}/bin/systemctl";
|
||||||
toggle = "~/.local/bin/toggle";
|
|
||||||
virt-manager = "${config.programs.virt-manager.package}/bin/virt-manager";
|
virt-manager = "${config.programs.virt-manager.package}/bin/virt-manager";
|
||||||
vm = "~/.local/bin/vm";
|
|
||||||
walker = "${config.home-manager.users.${config.custom.username}.programs.walker.package}/bin/walker";
|
walker = "${config.home-manager.users.${config.custom.username}.programs.walker.package}/bin/walker";
|
||||||
waydroid = "${pkgs.waydroid}/bin/waydroid";
|
waydroid = "${pkgs.waydroid}/bin/waydroid";
|
||||||
zoom = "~/.local/bin/zoom";
|
|
||||||
|
|
||||||
cfg = config.custom.desktops.hyprland.binds;
|
cfg = config.custom.desktops.hyprland.binds;
|
||||||
in {
|
in {
|
||||||
|
@ -68,8 +62,7 @@ in {
|
||||||
bindl = [
|
bindl = [
|
||||||
(key "Delete" "Ctrl" "exec" "${hyprctl} reload")
|
(key "Delete" "Ctrl" "exec" "${hyprctl} reload")
|
||||||
(key "Delete" "Ctrl+Alt" "exec" "${loginctl} terminate-session ''")
|
(key "Delete" "Ctrl+Alt" "exec" "${loginctl} terminate-session ''")
|
||||||
(key "Slash" "Super" "exec" inhibit)
|
(key "Delete" "Super" "exec" "inhibit")
|
||||||
|
|
||||||
(key "L" "Super" "exec" "${hyprlock} --immediate & ${sleep} 1 && ${hyprctl} dispatch dpms off")
|
(key "L" "Super" "exec" "${hyprlock} --immediate & ${sleep} 1 && ${hyprctl} dispatch dpms off")
|
||||||
|
|
||||||
# Laptop lid switches
|
# Laptop lid switches
|
||||||
|
@ -131,29 +124,30 @@ in {
|
||||||
(key "Bracketleft" "Super+Shift" "splitratio" "-0.1")
|
(key "Bracketleft" "Super+Shift" "splitratio" "-0.1")
|
||||||
(key "Bracketright" "Super" "layoutmsg" "orientationnext")
|
(key "Bracketright" "Super" "layoutmsg" "orientationnext")
|
||||||
(key "Bracketright" "Super+Shift" "splitratio" "+0.1")
|
(key "Bracketright" "Super+Shift" "splitratio" "+0.1")
|
||||||
(key "Delete" "Super" "exec" "${swayosd-client} --output-volume mute")
|
|
||||||
|
# TODO: Toggle trackball hand
|
||||||
|
#// (key "Delete" "Super" "exec" "left")
|
||||||
|
|
||||||
(key "Delete" "Super+Shift" "exec" "${left} kensington-orbit-wireless-tb-mouse")
|
(key "Delete" "Super+Shift" "exec" "${left} kensington-orbit-wireless-tb-mouse")
|
||||||
(key "Down" "Super" "movewindow" "d")
|
(key "Down" "Super" "movewindow" "d")
|
||||||
(key "Down" "Super+Shift" "movewindoworgroup" "d")
|
(key "Down" "Super+Shift" "movewindoworgroup" "d")
|
||||||
(key "Equal" "Super" "exec" "${swayosd-client} --output-volume raise")
|
(key "Equal" "Super" "exec" "audio Normalizer")
|
||||||
(key "Equal" "Super+Shift" "exec" "${zoom} +0.1")
|
|
||||||
(key "Escape" "Super" "togglefloating" null)
|
(key "Escape" "Super" "togglefloating" null)
|
||||||
(key "Escape" "Super+Alt" "exec" "lifx state --color red")
|
(key "Escape" "Super+Alt" "exec" "lifx state --color red")
|
||||||
(key "Escape" "Super+Shift" "centerwindow" null)
|
(key "Escape" "Super+Shift" "centerwindow" null)
|
||||||
(key "Left" "Super" "movewindow" "l")
|
(key "Left" "Super" "movewindow" "l")
|
||||||
(key "Left" "Super+Shift" "movewindoworgroup" "l")
|
(key "Left" "Super+Shift" "movewindoworgroup" "l")
|
||||||
(key "Minus" "Super" "exec" "${swayosd-client} --output-volume lower")
|
(key "Minus" "Super" "exec" "audio")
|
||||||
(key "Minus" "Super+Shift" "exec" "${zoom} -0.1")
|
(key "Print" "Shift" "exec" "screenshot display")
|
||||||
(key "Print" "Shift" "exec" "${screenshot} display")
|
(key "Print" "Super" "exec" "screenshot selection --edit")
|
||||||
(key "Print" "Super" "exec" "${screenshot} selection --edit")
|
(key "Print" "Super+Shift" "exec" "screenshot display --edit")
|
||||||
(key "Print" "Super+Shift" "exec" "${screenshot} display --edit")
|
(key "Print" null "exec" "screenshot selection")
|
||||||
(key "Print" null "exec" "${screenshot} selection")
|
|
||||||
(key "Return" "Super" "fullscreen" "1") # Maximize
|
(key "Return" "Super" "fullscreen" "1") # Maximize
|
||||||
(key "Return" "Super+Shift" "fullscreen" "0") # Fullscreen
|
(key "Return" "Super+Shift" "fullscreen" "0") # Fullscreen
|
||||||
(key "Right" "Super" "movewindow" "r")
|
(key "Right" "Super" "movewindow" "r")
|
||||||
(key "Right" "Super+Shift" "movewindoworgroup" "r")
|
(key "Right" "Super+Shift" "movewindoworgroup" "r")
|
||||||
(key "Space" "Ctrl" "exec" (concatStringsSep " " [
|
(key "Space" "Ctrl" "exec" (concatStringsSep " " [
|
||||||
"${toggle}"
|
"toggle"
|
||||||
"--focus"
|
"--focus"
|
||||||
"--type class"
|
"--type class"
|
||||||
"--expression '^dropdown$'"
|
"--expression '^dropdown$'"
|
||||||
|
@ -163,7 +157,7 @@ in {
|
||||||
]))
|
]))
|
||||||
(key "Space" "Ctrl+Alt" "exec" "lifx toggle")
|
(key "Space" "Ctrl+Alt" "exec" "lifx toggle")
|
||||||
(key "Space" "Ctrl+Shift" "exec" (concatStringsSep " " [
|
(key "Space" "Ctrl+Shift" "exec" (concatStringsSep " " [
|
||||||
"${toggle}"
|
"toggle"
|
||||||
"--type title"
|
"--type title"
|
||||||
"--expression '^Picture.in.[Pp]icture$'"
|
"--expression '^Picture.in.[Pp]icture$'"
|
||||||
"--workspace special:pip"
|
"--workspace special:pip"
|
||||||
|
@ -176,8 +170,8 @@ in {
|
||||||
(key "Up" "Super" "movewindow" "u")
|
(key "Up" "Super" "movewindow" "u")
|
||||||
(key "Up" "Super+Shift" "movewindoworgroup" "u")
|
(key "Up" "Super+Shift" "movewindoworgroup" "u")
|
||||||
|
|
||||||
(key "0" "Super" "exec" "${audio}")
|
(key "0" "Super" "workspace" "10")
|
||||||
(key "0" "Super+Shift" "exec" "${zoom}")
|
(key "0" "Super+Shift" "movetoworkspacesilent" "10")
|
||||||
(key "1" "Ctrl+Alt" "exec" "lifx state --brightness 0.01")
|
(key "1" "Ctrl+Alt" "exec" "lifx state --brightness 0.01")
|
||||||
(key "1" "Super" "workspace" "1")
|
(key "1" "Super" "workspace" "1")
|
||||||
(key "1" "Super+Alt" "exec" "lifx state --kelvin 1500")
|
(key "1" "Super+Alt" "exec" "lifx state --kelvin 1500")
|
||||||
|
@ -208,7 +202,7 @@ in {
|
||||||
(key "9" "Super+Shift" "movetoworkspacesilent" "9")
|
(key "9" "Super+Shift" "movetoworkspacesilent" "9")
|
||||||
(key "A" "Ctrl+Alt" "exec" "${waydroid} session stop")
|
(key "A" "Ctrl+Alt" "exec" "${waydroid} session stop")
|
||||||
(key "A" "Super" "togglespecialworkspace" "android")
|
(key "A" "Super" "togglespecialworkspace" "android")
|
||||||
(key "A" "Super+Shift" "movetoworkspacesilent" "special:android")
|
(key "A" "Super+Shift" "movetoworkspacesilent" "android")
|
||||||
(key "B" "Super" "exec" "[group new lock; tile] ${firefox-esr}")
|
(key "B" "Super" "exec" "[group new lock; tile] ${firefox-esr}")
|
||||||
(key "C" "Super" "exec" codium)
|
(key "C" "Super" "exec" codium)
|
||||||
(key "E" "Super" "exec" gnome-text-editor)
|
(key "E" "Super" "exec" gnome-text-editor)
|
||||||
|
@ -219,7 +213,7 @@ in {
|
||||||
(key "G" "Super+Shift" "movetoworkspacesilent" "name:game")
|
(key "G" "Super+Shift" "movetoworkspacesilent" "name:game")
|
||||||
(key "K" "Super" "exec" obsidian)
|
(key "K" "Super" "exec" obsidian)
|
||||||
(key "M" "Super" "togglespecialworkspace" "music")
|
(key "M" "Super" "togglespecialworkspace" "music")
|
||||||
(key "M" "Super+Shift" "movetoworkspacesilent" "special:music")
|
(key "M" "Super+Shift" "movetoworkspacesilent" "music")
|
||||||
(key "O" "Super" "togglespecialworkspace" "office")
|
(key "O" "Super" "togglespecialworkspace" "office")
|
||||||
(key "O" "Super+Ctrl" "exec" "${onlyoffice}")
|
(key "O" "Super+Ctrl" "exec" "${onlyoffice}")
|
||||||
(key "O" "Super+Shift" "movetoworkspacesilent" "special:office")
|
(key "O" "Super+Shift" "movetoworkspacesilent" "special:office")
|
||||||
|
@ -230,22 +224,22 @@ in {
|
||||||
(key "Q" "Super" "killactive" null)
|
(key "Q" "Super" "killactive" null)
|
||||||
(key "S" "Ctrl+Alt" "exec" "${pkill} steam")
|
(key "S" "Ctrl+Alt" "exec" "${pkill} steam")
|
||||||
(key "S" "Super" "togglespecialworkspace" "steam")
|
(key "S" "Super" "togglespecialworkspace" "steam")
|
||||||
(key "S" "Super+Shift" "movetoworkspacesilent" "special:steam")
|
(key "S" "Super+Shift" "movetoworkspacesilent" "steam")
|
||||||
(key "S" "Super+Shift" "exec" steam)
|
(key "S" "Super+Shift" "exec" steam)
|
||||||
(key "T" "Ctrl+Alt" "exec" "${pkill} kitty")
|
(key "T" "Ctrl+Alt" "exec" "${pkill} kitty")
|
||||||
(key "T" "Super" "togglespecialworkspace" "terminal")
|
(key "T" "Super" "togglespecialworkspace" "terminal")
|
||||||
(key "T" "Super+Shift" "movetoworkspacesilent" "special:terminal")
|
(key "T" "Super+Shift" "movetoworkspacesilent" "terminal")
|
||||||
(key "T" "Super+Shift" "exec" kitty)
|
(key "T" "Super+Shift" "exec" kitty)
|
||||||
(key "V" "Super" "exec" "${menu} --clipboard")
|
(key "V" "Super" "exec" "${menu} --clipboard")
|
||||||
(key "V" "Super+Shift" "exec" "${rm} ~/.cache/walker/clipboard.gob; ${notify-send} walker 'Clipboard cleared' --urgency low")
|
(key "V" "Super+Shift" "exec" "${rm} ~/.cache/walker/clipboard.gob; ${notify-send} walker 'Clipboard cleared' --urgency low")
|
||||||
(key "W" "Super" "togglespecialworkspace" "vm")
|
(key "W" "Super" "togglespecialworkspace" "vm")
|
||||||
(key "W" "Super+Ctrl" "exec" "${vm} -x ${
|
(key "W" "Super+Ctrl" "exec" "vm -x ${
|
||||||
if config.custom.hidpi
|
if config.custom.hidpi
|
||||||
then "/scale:140 +f"
|
then "/scale:140 +f"
|
||||||
else ""
|
else ""
|
||||||
}")
|
}")
|
||||||
(key "W" "Super+Ctrl+Shift" "exec" "${vm} ${virt-manager} --show-domain-console myndows")
|
(key "W" "Super+Ctrl+Shift" "exec" "vm ${virt-manager} --show-domain-console myndows")
|
||||||
(key "W" "Super+Shift" "movetoworkspacesilent" "special:vm")
|
(key "W" "Super+Shift" "movetoworkspacesilent" "vm")
|
||||||
(key "X" "Super" "workspace" "+1")
|
(key "X" "Super" "workspace" "+1")
|
||||||
(key "X" "Super+Shift" "movetoworkspacesilent" "+1")
|
(key "X" "Super+Shift" "movetoworkspacesilent" "+1")
|
||||||
(key "Z" "Super" "workspace" "-1")
|
(key "Z" "Super" "workspace" "-1")
|
||||||
|
|
|
@ -166,12 +166,6 @@ in {
|
||||||
swww
|
swww
|
||||||
tailscale
|
tailscale
|
||||||
])
|
])
|
||||||
(bash "zoom" [
|
|
||||||
argc
|
|
||||||
bc
|
|
||||||
hyprland
|
|
||||||
jq
|
|
||||||
])
|
|
||||||
]
|
]
|
||||||
++ (with pkgs.python3Packages; [
|
++ (with pkgs.python3Packages; [
|
||||||
# Python files with extension .py
|
# Python files with extension .py
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
#! /usr/bin/env bash
|
|
||||||
|
|
||||||
# @describe Wrapper for zooming display
|
|
||||||
#
|
|
||||||
# https://github.com/sigoden/argc
|
|
||||||
|
|
||||||
# @arg factor=1 Absolute or relative factor to zoom to, empty to reset
|
|
||||||
|
|
||||||
eval "$(argc --argc-eval "$0" "$@")"
|
|
||||||
|
|
||||||
factor="$(hyprctl -j getoption cursor:zoom_factor | jq -r .float)" # Current factor
|
|
||||||
|
|
||||||
if [[ "${argc_factor:-}" =~ ^[+|-][1-9]\.*[0-9]*$ ]]; then
|
|
||||||
factor="$(bc <<< "$factor ${argc_factor}")"
|
|
||||||
elif [[ "${argc_factor:-}" =~ ^[1-9]\.*[0-9]*$ ]]; then
|
|
||||||
factor="${argc_factor:-}"
|
|
||||||
else
|
|
||||||
echo "Factor must be an absolute or relative decimal between 1 and 9"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
hyprctl keyword cursor:zoom_factor "$factor"
|
|
Loading…
Add table
Reference in a new issue