mirror of
https://github.com/larstvei/nix-config.git
synced 2026-02-01 16:20:12 +00:00
Compare commits
No commits in common. "7e7a6d41da6eac4e2e11e39ecb25e7bb6dcfedaf" and "3bdeafb24a77c0319e410ff5921fdd10229d0b91" have entirely different histories.
7e7a6d41da
...
3bdeafb24a
@ -1,14 +1,6 @@
|
|||||||
{ 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 = {
|
||||||
@ -64,7 +56,6 @@ 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,7 +11,6 @@
|
|||||||
parallel
|
parallel
|
||||||
ripgrep
|
ripgrep
|
||||||
tokei
|
tokei
|
||||||
unzip
|
|
||||||
wget
|
wget
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user