Compare commits
5 commits
2e53d24159
...
fa0e0fe86b
| Author | SHA1 | Date | |
|---|---|---|---|
| fa0e0fe86b | |||
| 0057dcb19f | |||
| e18ca72c20 | |||
| 76b89f8ea8 | |||
| 4a4e9cc30f |
1 changed files with 11 additions and 3 deletions
|
|
@ -33,6 +33,7 @@ in {
|
|||
chromium # some websites only work there :(
|
||||
nwg-displays
|
||||
shikane # output autoconfig
|
||||
swaybg
|
||||
zotero
|
||||
;
|
||||
|
||||
|
|
@ -44,7 +45,7 @@ in {
|
|||
|
||||
wayland.windowManager.sway = let
|
||||
logoutMode = "[L]ogout, [S]uspend, [P]oweroff, [R]eboot";
|
||||
lock = "hyprlock --immediate";
|
||||
lock = "swaylock --daemonize --image ~/.wallpaper --scaling fill";
|
||||
in {
|
||||
enable = true;
|
||||
swaynag.enable = true;
|
||||
|
|
@ -75,6 +76,7 @@ in {
|
|||
bars = [];
|
||||
|
||||
keybindings = mkOptionDefault {
|
||||
"Mod4+Shift+a" = "exec shikanectl reload";
|
||||
"Mod4+Shift+e" = ''mode "${logoutMode}"'';
|
||||
"Mod4+i" = "exec emacsclient --create-frame";
|
||||
"Mod4+Control+l" = "exec ${lock}";
|
||||
|
|
@ -88,7 +90,7 @@ in {
|
|||
modes = mkOptionDefault {
|
||||
"${logoutMode}" = {
|
||||
"l" = "exec --no-startup-id swaymsg exit, mode default";
|
||||
#"s" = "exec --no-startup-id betterlockscreen --suspend, mode default";
|
||||
"s" = "exec --no-startup-id systemctl suspend, mode default";
|
||||
"p" = "exec --no-startup-id systemctl poweroff, mode default";
|
||||
"r" = "exec --no-startup-id systemctl reboot, mode default";
|
||||
"Escape" = "mode default";
|
||||
|
|
@ -101,13 +103,19 @@ in {
|
|||
startup = [
|
||||
{command = "shikane";}
|
||||
{command = "waybar";}
|
||||
{command = "swaybg --image ~/.wallpaper --mode fill"; always = true; }
|
||||
{command = "swayidle -w idlehint 1 before-sleep \"${lock}\"";}
|
||||
];
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
bindswitch --reload --locked lid:off output eDP-1 enable;
|
||||
bindswitch --reload --locked lid:on output eDP-1 disable;
|
||||
'';
|
||||
};
|
||||
programs = {
|
||||
fuzzel.enable = true;
|
||||
hyprlock.enable = true;
|
||||
swaylock.enable = true;
|
||||
waybar = {
|
||||
enable = true;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue