diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-15 22:24:51 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-15 22:24:56 +0100 |
| commit | cbece5e2ab15670c31f76e194a82516490760b16 (patch) | |
| tree | b9caf601eb3f8a5e95dd959b7baa26a2d6f3f814 /accounts/gkleen@sif | |
| parent | 52ee4685575fac5159b42ee6eb0612bd8a7bf68b (diff) | |
| download | nixos-cbece5e2ab15670c31f76e194a82516490760b16.tar nixos-cbece5e2ab15670c31f76e194a82516490760b16.tar.gz nixos-cbece5e2ab15670c31f76e194a82516490760b16.tar.bz2 nixos-cbece5e2ab15670c31f76e194a82516490760b16.tar.xz nixos-cbece5e2ab15670c31f76e194a82516490760b16.zip | |
...
Diffstat (limited to 'accounts/gkleen@sif')
| -rw-r--r-- | accounts/gkleen@sif/niri/default.nix | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index fc3a0a2b..aa109616 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix | |||
| @@ -91,7 +91,7 @@ let | |||
| 91 | active_workspace="$(jq -r '.[] | select(.is_focused) | .id' <<<"$workspaces_json")" | 91 | active_workspace="$(jq -r '.[] | select(.is_focused) | .id' <<<"$workspaces_json")" |
| 92 | 92 | ||
| 93 | workspace_json="$(jq -c --arg active_output "$active_output" 'map(select(.output == $active_output and .name == null)) | sort_by(.idx) | .[0]' <<<"$workspaces_json")" | 93 | workspace_json="$(jq -c --arg active_output "$active_output" 'map(select(.output == $active_output and .name == null)) | sort_by(.idx) | .[0]' <<<"$workspaces_json")" |
| 94 | [[ -n $workspace_json && $workspace_json != null && $active_workspace != "$(jq -r '.id' <<<"$workspace_json")" ]] || exit 0 | 94 | [[ -n $workspace_json && $workspace_json != null ]] || exit 0 |
| 95 | jq --arg active_workspace "$active_workspace" -c "$action" <<<"$workspace_json" | tee /dev/stderr | socat STDIO "$NIRI_SOCKET" | 95 | jq --arg active_workspace "$active_workspace" -c "$action" <<<"$workspace_json" | tee /dev/stderr | socat STDIO "$NIRI_SOCKET" |
| 96 | ''; | 96 | ''; |
| 97 | }; | 97 | }; |
| @@ -174,6 +174,18 @@ in { | |||
| 174 | struts = { left = 0; right = 0; top = 0; bottom = 0; }; | 174 | struts = { left = 0; right = 0; top = 0; bottom = 0; }; |
| 175 | focus-ring = { | 175 | focus-ring = { |
| 176 | width = 2; | 176 | width = 2; |
| 177 | active.gradient = { | ||
| 178 | from = "hsla(195 100% 60% 0.9)"; | ||
| 179 | to = "hsla(155 100% 50% 0.9)"; | ||
| 180 | angle = 45; | ||
| 181 | relative-to = "workspace-view"; | ||
| 182 | }; | ||
| 183 | inactive.gradient = { | ||
| 184 | from = "hsla(0 0% 42% 0.66)"; | ||
| 185 | to = "hsla(0 0% 35% 0.66)"; | ||
| 186 | angle = 45; | ||
| 187 | relative-to = "workspace-view"; | ||
| 188 | }; | ||
| 177 | }; | 189 | }; |
| 178 | 190 | ||
| 179 | preset-column-widths = [ | 191 | preset-column-widths = [ |
| @@ -406,10 +418,14 @@ in { | |||
| 406 | action = spawn (lib.getExe niri) "msg" "action" "power-off-monitors"; | 418 | action = spawn (lib.getExe niri) "msg" "action" "power-off-monitors"; |
| 407 | allow-when-locked = true; | 419 | allow-when-locked = true; |
| 408 | }; | 420 | }; |
| 409 | "Mod+Shift+L" = { | 421 | "Mod+Shift+L".action = spawn loginctl "lock-session"; |
| 410 | action = spawn loginctl "lock-session"; | ||
| 411 | }; | ||
| 412 | "Mod+Shift+E".action = quit; | 422 | "Mod+Shift+E".action = quit; |
| 423 | "Mod+Shift+Minus" = { | ||
| 424 | action = spawn systemctl "suspend"; | ||
| 425 | }; | ||
| 426 | "Mod+Shift+Control+Minus" = { | ||
| 427 | action = spawn systemctl "hibernate"; | ||
| 428 | }; | ||
| 413 | 429 | ||
| 414 | "XF86MonBrightnessUp" = { | 430 | "XF86MonBrightnessUp" = { |
| 415 | action = spawn lightctl "-d" "-e4" "-n1" "up"; | 431 | action = spawn lightctl "-d" "-e4" "-n1" "up"; |
