Skip to content

Commit

Permalink
Fix sway startup commands
Browse files Browse the repository at this point in the history
  • Loading branch information
wchresta committed Feb 26, 2025
1 parent 0bbb62b commit 54fd699
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion home-manager/includes/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let
git -C ${cfg-src} pull --autostash && \
nvim ${cfg-src}/${file} && \
git -C ${cfg-src}/${file} add ${cfg-src}/${file} && \
sudo nixos-rebuild switch --update-input monoid-home --update-input light-control && \
sudo nixos-rebuild switch --update-input monoid-home && \
git -C ${cfg-src} commit
'';
in {
Expand All @@ -23,6 +23,7 @@ let

ehome = ehome-cmd "";
evim = ehome-cmd "includes/vim.nix";
homeswitch = "sudo nixos-rebuild switch --update-input monoid-home";

enix = ''
sudo -E nvim /etc/nixos/ && \
Expand Down
8 changes: 4 additions & 4 deletions home-manager/includes/windowManager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ let
]
else
[
{ command = "swaymsg output * bg ${emre-flower} fill"; }
{ command = ''swaymsg "output * background ${emre-flower} fill"''; }
{ command = ''
exec swayidle -w \
timeout 600 '${locker}' \
timeout 660 'systemctl suspend' \
timeout 300 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
timeout 720 '${locker}' \
timeout 720 'systemctl suspend' \
timeout 600 'swaymsg "output * dpms off" resume swaymsg "output * dpms on"' \
before-sleep '${locker}'
''; }
];
Expand Down

0 comments on commit 54fd699

Please sign in to comment.