mirror of
https://github.com/larstvei/nix-config.git
synced 2026-02-01 16:20:12 +00:00
Compare commits
2 Commits
3bdeafb24a
...
7e7a6d41da
| Author | SHA1 | Date | |
|---|---|---|---|
| 7e7a6d41da | |||
| aaa6ee3390 |
@ -1,6 +1,14 @@
|
|||||||
{ pkgs, inputs, ... }:
|
{ pkgs, inputs, ... }:
|
||||||
let
|
let
|
||||||
nanostatus = inputs.nanostatus.packages.${pkgs.system}.default;
|
nanostatus = inputs.nanostatus.packages.${pkgs.system}.default;
|
||||||
|
toggle-mirror-display = pkgs.writeShellScriptBin "toggle-mirror-display" ''
|
||||||
|
if hyprctl monitors | grep -q '^Monitor eDP-1'; then
|
||||||
|
M=$(hyprctl monitors | awk '/Monitor/ && $2 != "eDP-1" { print $2 }' | head -n1)
|
||||||
|
hyprctl keyword monitor "eDP-1,preferred,auto,1,mirror,$M"
|
||||||
|
else
|
||||||
|
hyprctl keyword monitor "eDP-1,preferred,auto,1"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
@ -56,6 +64,7 @@ in
|
|||||||
"$mod, D, exec, darkman toggle"
|
"$mod, D, exec, darkman toggle"
|
||||||
"$mod, space, exec, ${nanostatus}/bin/nanostatus-toggle"
|
"$mod, space, exec, ${nanostatus}/bin/nanostatus-toggle"
|
||||||
"$mod, backspace, exec, hyprlock"
|
"$mod, backspace, exec, hyprlock"
|
||||||
|
"$shiftMod, M, exec, ${toggle-mirror-display}/bin/toggle-mirror-display"
|
||||||
|
|
||||||
# Text input (macOS-like way of producing Norwegian characters)
|
# Text input (macOS-like way of producing Norwegian characters)
|
||||||
"$mod, A, exec, wtype 'å'"
|
"$mod, A, exec, wtype 'å'"
|
||||||
|
|||||||
@ -11,6 +11,7 @@
|
|||||||
parallel
|
parallel
|
||||||
ripgrep
|
ripgrep
|
||||||
tokei
|
tokei
|
||||||
|
unzip
|
||||||
wget
|
wget
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user