2023-10-05 13:43:28 -05:00
|
|
|
{
|
2024-09-12 11:22:43 -05:00
|
|
|
style,
|
2023-10-05 13:43:28 -05:00
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2024-03-26 11:04:47 -05:00
|
|
|
programs.foot = {
|
2023-10-16 16:50:55 -05:00
|
|
|
enable = true;
|
2024-03-26 11:04:47 -05:00
|
|
|
};
|
2023-10-16 17:14:40 -05:00
|
|
|
|
2024-10-18 10:29:50 -05:00
|
|
|
xdg = {
|
|
|
|
enable = true;
|
|
|
|
mimeApps = {
|
|
|
|
enable = true;
|
|
|
|
defaultApplications = {
|
|
|
|
"x-scheme-handler/http" = "firefox.desktop";
|
|
|
|
"x-scheme-handler/https" = "firefox.desktop";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-10-05 13:43:28 -05:00
|
|
|
wayland.windowManager.sway = {
|
|
|
|
/*
|
2024-09-12 13:24:57 -05:00
|
|
|
TODO:
|
2023-10-05 13:43:28 -05:00
|
|
|
+ Super+r should rotate the selected group of windows.
|
|
|
|
+ Super+Control+{1-9} should control the size of the preselect space.
|
|
|
|
+ Super+Shift+b should balance the size of all selected nodes.
|
|
|
|
set $tilers "(wezterm.*|kitty.*|firefox.*|slack.*|Slack.*|thunar.*|Alacritty.*|alacritty.*|Discord.*|discord.*)"
|
|
|
|
for_window [title=".*"] floating enable
|
|
|
|
for_window [app_id=$tilers] floating disable
|
|
|
|
|
|
|
|
# for_window [title=".*"] opacity $opacity
|
|
|
|
|
|
|
|
# TODO: I forget why I needed this - could google it I expect?
|
|
|
|
exec /usr/lib/polkit-kde-authentication-agent-1
|
|
|
|
|
|
|
|
# prevent all windows from stealing focus
|
|
|
|
no_focus [class=".*"]
|
|
|
|
*/
|
|
|
|
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
systemd = {
|
|
|
|
enable = true;
|
2024-10-08 10:17:22 -05:00
|
|
|
variables = [
|
|
|
|
"DISPLAY"
|
|
|
|
"WAYLAND_DISPLAY"
|
|
|
|
"SWAYSOCK"
|
|
|
|
"XDG_CURRENT_DESKTOP"
|
|
|
|
"XDG_SESSION_TYPE"
|
|
|
|
"NIXOS_OZONE_WL"
|
|
|
|
"XCURSOR_THEME"
|
|
|
|
"XCURSOR_SIZE"
|
|
|
|
"PATH"
|
|
|
|
];
|
2023-10-05 13:43:28 -05:00
|
|
|
};
|
|
|
|
|
2023-11-29 21:27:15 -06:00
|
|
|
# TODO: stuff is opening on workspace 10 (0?)
|
2023-10-06 00:49:19 -05:00
|
|
|
extraConfig = ''
|
|
|
|
exec --no-startup-id {
|
|
|
|
swaymsg "workspace 1"
|
|
|
|
}
|
2023-10-06 23:56:28 -05:00
|
|
|
|
2024-03-26 11:04:47 -05:00
|
|
|
set $tilers "(wezterm.*|kitty.*|firefox.*|[Ss]lack.*|thunar.*|[Aa]lacritty.*|[Dd]iscord.*)"
|
2023-10-06 23:56:28 -05:00
|
|
|
for_window [title=".*"] floating enable
|
|
|
|
for_window [app_id=$tilers] floating disable
|
2023-10-06 00:49:19 -05:00
|
|
|
'';
|
2023-10-05 13:43:28 -05:00
|
|
|
config = {
|
2023-10-06 00:49:19 -05:00
|
|
|
defaultWorkspace = "1";
|
|
|
|
|
|
|
|
workspaceOutputAssign = [
|
|
|
|
/*
|
|
|
|
{
|
|
|
|
output = "eDP";
|
|
|
|
workspace = "1";
|
|
|
|
*/
|
|
|
|
];
|
|
|
|
|
2023-10-05 13:43:28 -05:00
|
|
|
# TODO: popup_during_fullscreen smart
|
|
|
|
focus = {
|
2023-10-06 00:49:19 -05:00
|
|
|
wrapping = "no"; # maybe workspace?
|
2023-10-05 13:43:28 -05:00
|
|
|
followMouse = "no";
|
|
|
|
mouseWarping = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
modifier = "Mod4";
|
|
|
|
|
|
|
|
gaps = {
|
|
|
|
smartBorders = "on";
|
|
|
|
};
|
|
|
|
|
|
|
|
window = {
|
|
|
|
border = 2;
|
|
|
|
titlebar = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
floating = {
|
|
|
|
modifier = config.wayland.windowManager.sway.config.modifier;
|
|
|
|
titlebar = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
startup = [
|
2024-09-30 09:14:12 -05:00
|
|
|
{command = "kdeconnect-indicator";}
|
2024-12-20 10:14:12 -06:00
|
|
|
{command = "mako";}
|
2024-09-13 01:39:25 -05:00
|
|
|
{
|
|
|
|
command = "swaybg -i $HOME/.wallpaper";
|
|
|
|
}
|
2024-03-26 11:04:47 -05:00
|
|
|
{
|
|
|
|
command = "swayosd-server";
|
|
|
|
}
|
2023-10-05 13:43:28 -05:00
|
|
|
{
|
2023-10-30 20:11:08 -05:00
|
|
|
command = "waybar";
|
2023-10-05 13:43:28 -05:00
|
|
|
}
|
|
|
|
{
|
|
|
|
command = lib.concatStringsSep " " [
|
|
|
|
"swayidle -w"
|
2024-01-16 21:14:14 -06:00
|
|
|
"before-sleep 'swaylock'"
|
|
|
|
"timeout 300 'notify-send \"Idling in 5 minutes\"' resume 'notify-send \"Idling cancelled.\"'"
|
|
|
|
"timeout 480 'notify-send -u critical \"Idling in 2 minutes\"'"
|
2024-01-13 14:38:17 -06:00
|
|
|
"timeout 510 'notify-send -u critical \"Idling in 90 seconds\"'"
|
|
|
|
"timeout 540 'notify-send -u critical \"Idling in 60 seconds!\"'"
|
|
|
|
"timeout 570 'notify-send -u critical \"Idling in 30 seconds!\"'"
|
|
|
|
"timeout 590 'notify-send -u critical \"Idling in 10 seconds!\"'"
|
|
|
|
"timeout 591 'notify-send -u critical \"Idling in 9 seconds!\"'"
|
|
|
|
"timeout 592 'notify-send -u critical \"Idling in 8 seconds!\"'"
|
|
|
|
"timeout 593 'notify-send -u critical \"Idling in 7 seconds!\"'"
|
|
|
|
"timeout 594 'notify-send -u critical \"Idling in 6 seconds!\"'"
|
|
|
|
"timeout 595 'notify-send -u critical \"Idling in 5 seconds!\"'"
|
|
|
|
"timeout 596 'notify-send -u critical \"Idling in 4 seconds!\"'"
|
|
|
|
"timeout 597 'notify-send -u critical \"Idling in 3 seconds!\"'"
|
|
|
|
"timeout 598 'notify-send -u critical \"Idling in 2 seconds!\"'"
|
|
|
|
"timeout 599 'notify-send -u critical \"Idling in 1 second!\"'"
|
|
|
|
"timeout 600 'swaylock -f'"
|
2024-01-16 21:14:14 -06:00
|
|
|
"timeout 600 'swaymsg \"output * dpms off\"' resume 'swaymsg \"output * dpms on\" & maybe-good-morning &'"
|
2023-10-05 13:43:28 -05:00
|
|
|
];
|
|
|
|
}
|
2024-09-22 20:20:15 -05:00
|
|
|
# {command = "firefox";}
|
|
|
|
# {command = "wezterm";}
|
2023-10-05 13:43:28 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
modes = {
|
|
|
|
resize = {
|
|
|
|
"h" = "resize shrink width 10 px or 10 ppt";
|
|
|
|
"j" = "resize grow height 10 px or 10 ppt";
|
|
|
|
"k" = "resize shrink height 10 px or 10 ppt";
|
|
|
|
"l" = "resize grow width 10 px or 10 ppt";
|
|
|
|
|
|
|
|
"left" = "resize shrink width 10 px or 10 ppt";
|
|
|
|
"down" = "resize grow height 10 px or 10 ppt";
|
|
|
|
"up" = "resize shrink height 10 px or 10 ppt";
|
|
|
|
"right" = "resize grow width 10 px or 10 ppt";
|
|
|
|
|
|
|
|
"return" = ''mode "default"'';
|
|
|
|
"escape" = ''mode "default"'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
input = {
|
|
|
|
"type:keyboard" = {
|
|
|
|
xkb_options = "ctrl:nocaps";
|
2024-09-12 13:24:57 -05:00
|
|
|
repeat_delay = "180";
|
|
|
|
repeat_rate = "100";
|
2023-10-05 13:43:28 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
"type:pointer" = {
|
|
|
|
accel_profile = "flat";
|
2024-09-12 13:24:57 -05:00
|
|
|
pointer_accel = "0.5";
|
2023-10-05 13:43:28 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
"type:touchpad" = {
|
|
|
|
dwt = "disabled";
|
|
|
|
tap = "enabled";
|
|
|
|
natural_scroll = "enabled";
|
|
|
|
middle_emulation = "enabled";
|
|
|
|
# pointer_accel
|
|
|
|
};
|
|
|
|
};
|
|
|
|
keybindings = let
|
|
|
|
mod = config.wayland.windowManager.sway.config.modifier;
|
2024-03-26 11:04:47 -05:00
|
|
|
menu = "tofi-run | xargs swaymsg exec --";
|
2023-10-05 13:43:28 -05:00
|
|
|
in {
|
|
|
|
"${mod}+control+space" = "exec makoctl dismiss";
|
|
|
|
"${mod}+shift+space" = "exec makoctl invoke";
|
2023-11-09 16:25:30 -06:00
|
|
|
# "${mod}+return" = "exec kitty --single-instance";
|
2024-03-26 11:04:47 -05:00
|
|
|
"${mod}+return" = "exec wezterm";
|
2023-10-05 13:43:28 -05:00
|
|
|
"${mod}+shift+return" = "exec floating-term";
|
|
|
|
"${mod}+shift+alt+return" = "exec kitty";
|
|
|
|
"${mod}+c" = "kill";
|
|
|
|
"${mod}+shift+c" = "kill # TODO: kill -9?";
|
2024-03-26 11:04:47 -05:00
|
|
|
"${mod}+alt+space" = "exec wofi --show drun";
|
2024-09-12 13:24:57 -05:00
|
|
|
"${mod}" = "exec ${menu}";
|
2024-03-26 11:04:47 -05:00
|
|
|
"${mod}+space" = "exec ${menu}";
|
2023-10-05 13:43:28 -05:00
|
|
|
"${mod}+shift+s" = "exec clipshot";
|
|
|
|
"${mod}+e" = "exec thunar";
|
|
|
|
"${mod}+shift+r" = "reload";
|
|
|
|
"${mod}+control+Escape" = "exit";
|
|
|
|
"${mod}+shift+e" = "exit";
|
|
|
|
"${mod}+shift+p" = "exec pass-chooser";
|
|
|
|
"${mod}+control+j" = "split v";
|
|
|
|
"${mod}+control+l" = "split h";
|
|
|
|
"${mod}+control+f" = "focus mode_toggle";
|
|
|
|
|
|
|
|
"${mod}+h" = "focus left";
|
|
|
|
"${mod}+j" = "focus down";
|
|
|
|
"${mod}+k" = "focus up";
|
|
|
|
"${mod}+l" = "focus right";
|
|
|
|
|
|
|
|
"${mod}+left" = "focus left";
|
|
|
|
"${mod}+down" = "focus down";
|
|
|
|
"${mod}+up" = "focus up";
|
|
|
|
"${mod}+right" = "focus right";
|
|
|
|
|
|
|
|
"${mod}+shift+h" = "move left";
|
|
|
|
"${mod}+shift+j" = "move down";
|
|
|
|
"${mod}+shift+k" = "move up";
|
|
|
|
"${mod}+shift+l" = "move right";
|
|
|
|
|
|
|
|
"${mod}+shift+left" = "move left";
|
|
|
|
"${mod}+shift+down" = "move down";
|
|
|
|
"${mod}+shift+up" = "move up";
|
|
|
|
"${mod}+shift+right" = "move right";
|
|
|
|
|
|
|
|
"${mod}+1" = "workspace 1";
|
|
|
|
"${mod}+2" = "workspace 2";
|
|
|
|
"${mod}+3" = "workspace 3";
|
|
|
|
"${mod}+4" = "workspace 4";
|
|
|
|
"${mod}+5" = "workspace 5";
|
|
|
|
"${mod}+6" = "workspace 6";
|
|
|
|
"${mod}+7" = "workspace 7";
|
|
|
|
"${mod}+8" = "workspace 8";
|
|
|
|
"${mod}+9" = "workspace 9";
|
|
|
|
"${mod}+0" = "workspace 10";
|
|
|
|
|
|
|
|
"${mod}+shift+1" = "move container to workspace 1";
|
|
|
|
"${mod}+shift+2" = "move container to workspace 2";
|
|
|
|
"${mod}+shift+3" = "move container to workspace 3";
|
|
|
|
"${mod}+shift+4" = "move container to workspace 4";
|
|
|
|
"${mod}+shift+5" = "move container to workspace 5";
|
|
|
|
"${mod}+shift+6" = "move container to workspace 6";
|
|
|
|
"${mod}+shift+7" = "move container to workspace 7";
|
|
|
|
"${mod}+shift+8" = "move container to workspace 8";
|
|
|
|
"${mod}+shift+9" = "move container to workspace 9";
|
|
|
|
"${mod}+shift+0" = "move container to workspace 10";
|
|
|
|
|
|
|
|
"${mod}+b" = "splith";
|
|
|
|
"${mod}+v" = "splitv";
|
|
|
|
|
|
|
|
"${mod}+shift+f" = "fullscreen toggle";
|
|
|
|
"${mod}+f" = "floating toggle";
|
|
|
|
"${mod}+s" = "floating disable";
|
|
|
|
"${mod}+alt+f" = "focus mode_toggle";
|
|
|
|
"${mod}+p" = "focus parent";
|
|
|
|
"${mod}+period" = "focus child";
|
|
|
|
"${mod}+comma" = "focus child";
|
2024-01-30 19:36:52 -06:00
|
|
|
|
2023-10-05 13:43:28 -05:00
|
|
|
"${mod}+tab" = "workspace back_and_forth";
|
2024-01-30 19:36:52 -06:00
|
|
|
"alt+tab" = "workspace back_and_forth";
|
2023-10-05 13:43:28 -05:00
|
|
|
|
|
|
|
"${mod}+minus" = "gaps inner current minus 5";
|
|
|
|
"${mod}+plus" = "gaps inner current plus 5";
|
|
|
|
"${mod}+control+alt+h" = "gaps horizontal current minus 5";
|
|
|
|
"${mod}+control+alt+l" = "gaps horizontal current plus 5";
|
|
|
|
"${mod}+control+alt+j" = "gaps vertical current minus 5";
|
|
|
|
"${mod}+control+alt+k" = "gaps vertical current plus 5";
|
|
|
|
|
|
|
|
# TODO: this should also reset the horizontal and vertical gaps?
|
|
|
|
"${mod}+control+equal" = "gaps inner current set 0";
|
|
|
|
|
2024-09-17 12:06:20 -05:00
|
|
|
"${mod}+shift+v" = "exec swayosd-client --input-volume mute-toggle";
|
|
|
|
"${mod}+F1" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
2024-03-26 11:04:47 -05:00
|
|
|
"XF86AudioRaiseVolume" = "exec swayosd-client --output-volume raise";
|
|
|
|
"XF86AudioLowerVolume" = "exec swayosd-client --output-volume lower";
|
|
|
|
"XF86AudioMute" = "exec swayosd-client --output-volume mute-toggle";
|
|
|
|
"XF86AudioMicMute" = "exec swayosd-client --input-volume mute-toggle";
|
|
|
|
"XF86MonBrightnessUp" = "exec swayosd-client --brightness raise";
|
|
|
|
"XF86MonBrightnessDown" = "exec swayosd-client --brightness lower";
|
2023-10-05 13:43:28 -05:00
|
|
|
"control+XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +1%";
|
|
|
|
"control+XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -1%";
|
|
|
|
"XF86AudioPlay" = "exec playerctl play-pause";
|
|
|
|
"XF86AudioNext" = "exec playerctl next";
|
|
|
|
"XF86AudioPrev" = "exec playerctl previous";
|
2024-09-17 12:06:20 -05:00
|
|
|
"--locked ${mod}+shift+v" = "exec swayosd-client --input-volume mute-toggle";
|
|
|
|
"--locked ${mod}+F1" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
|
|
|
"--locked XF86AudioRaiseVolume" = "exec swayosd-client --output-volume raise";
|
|
|
|
"--locked XF86AudioLowerVolume" = "exec swayosd-client --output-volume lower";
|
|
|
|
"--locked XF86AudioMute" = "exec swayosd-client --output-volume mute-toggle";
|
|
|
|
"--locked XF86AudioMicMute" = "exec swayosd-client --input-volume mute-toggle";
|
|
|
|
"--locked XF86MonBrightnessUp" = "exec swayosd-client --brightness raise";
|
|
|
|
"--locked XF86MonBrightnessDown" = "exec swayosd-client --brightness lower";
|
|
|
|
"--locked control+XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +1%";
|
|
|
|
"--locked control+XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -1%";
|
|
|
|
"--locked XF86AudioPlay" = "exec playerctl play-pause";
|
|
|
|
"--locked XF86AudioNext" = "exec playerctl next";
|
|
|
|
"--locked XF86AudioPrev" = "exec playerctl previous";
|
2024-09-12 11:58:24 -05:00
|
|
|
|
|
|
|
/*
|
|
|
|
"XF86MonBrightnessUp" = " exec swayosd-client --brightness 10";
|
|
|
|
"XF86MonBrightnessDown" = "exec swayosd-client --brightness -10";
|
|
|
|
"XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
|
|
|
"XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
|
|
|
"XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
|
|
|
"XF86AudioRaiseVolume" = "exec swayosd-client --output-volume 15";
|
|
|
|
"XF86AudioLowerVolume" = "exec swayosd-client --output-volume -15";
|
|
|
|
"XF86AudioRaiseVolume" = "exec swayosd-client --output-volume raise --max-volume 120";
|
|
|
|
"XF86AudioLowerVolume" = "exec swayosd-client --output-volume lower --max-volume 120";
|
|
|
|
"XF86AudioRaiseVolume" = "exec swayosd-client --output-volume +10 --device alsa_output.pci-0000_11_00.4.analog-stereo.monitor";
|
|
|
|
"XF86AudioLowerVolume" = "exec swayosd-client --output-volume -10 --device alsa_output.pci-0000_11_00.4.analog-stereo.monitor";
|
|
|
|
"XF86AudioMicMute" = "exec pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
|
|
|
"XF86MonBrightnessDown" = "exec brightnessctl set 10%-";
|
|
|
|
"XF86MonBrightnessUp" = "exec brightnessctl set +10%";
|
|
|
|
"shift+XF86MonBrightnessDown" = "exec brightnessctl set 1%";
|
|
|
|
"shift+XF86MonBrightnessUp" = "exec brightnessctl set 100%";
|
|
|
|
"control+XF86MonBrightnessDown" = "exec brightnessctl set 1%-";
|
|
|
|
"control+XF86MonBrightnessUp" = "exec brightnessctl set +1%";
|
|
|
|
"${mod}+shift+v" = "exec pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
|
|
|
*/
|
2023-10-05 13:43:28 -05:00
|
|
|
|
|
|
|
"${mod}+control+shift+l" = "exec swaylock";
|
|
|
|
|
|
|
|
"${mod}+shift+alt+f" = "for_window [class=$tilers] floating toggle";
|
|
|
|
};
|
|
|
|
assigns = {};
|
|
|
|
bars = [];
|
2024-09-12 11:22:43 -05:00
|
|
|
colors = with style.colors; {
|
2023-10-05 13:43:28 -05:00
|
|
|
background = bg;
|
|
|
|
focused = {
|
|
|
|
background = bg;
|
|
|
|
border = primary;
|
|
|
|
childBorder = primary;
|
|
|
|
indicator = primary;
|
|
|
|
text = bg;
|
|
|
|
};
|
|
|
|
focusedInactive = {
|
|
|
|
background = bg;
|
2023-10-30 20:11:08 -05:00
|
|
|
border = bg3;
|
|
|
|
childBorder = bg3;
|
2023-10-16 17:14:40 -05:00
|
|
|
indicator = bg;
|
2023-10-05 13:43:28 -05:00
|
|
|
text = bg;
|
|
|
|
};
|
|
|
|
placeholder = {
|
|
|
|
background = bg;
|
|
|
|
border = primary;
|
|
|
|
childBorder = primary;
|
|
|
|
indicator = primary;
|
|
|
|
text = text;
|
|
|
|
};
|
|
|
|
unfocused = {
|
|
|
|
background = bg;
|
2023-10-30 20:11:08 -05:00
|
|
|
border = bg3;
|
|
|
|
childBorder = bg3;
|
2023-10-05 13:43:28 -05:00
|
|
|
indicator = bg;
|
|
|
|
text = text;
|
|
|
|
};
|
|
|
|
urgent = {
|
|
|
|
background = urgent;
|
|
|
|
border = urgent;
|
|
|
|
childBorder = urgent;
|
|
|
|
indicator = urgent;
|
|
|
|
text = bg;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# this doesn't work due to weird quoting bugs AFAICT
|
|
|
|
/*
|
|
|
|
services.swayidle = let
|
|
|
|
bins = rec {
|
|
|
|
swaylock = builtins.trace "${pkgs.swaylock}/bin/swaylock" "${pkgs.swaylock}/bin/swaylock";
|
|
|
|
swaymsg = "${pkgs.sway}/bin/swaymsg";
|
|
|
|
notify-send = "${swaymsg} exec -- ${pkgs.libnotify}/bin/notify-send";
|
|
|
|
};
|
|
|
|
in (with bins; {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
events = [
|
|
|
|
{
|
|
|
|
event = "before-sleep";
|
|
|
|
command = swaylock;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
timeouts = [
|
|
|
|
{
|
|
|
|
timeout = 5;
|
|
|
|
command = "${notify-send} \\\"Idling in 300 seconds\\\"";
|
|
|
|
resumeCommand = "${notify-send} \\\"Idling cancelled.\\\"";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
# timeout = 540;
|
|
|
|
timeout = 6;
|
|
|
|
command = "${notify-send} 'Idling in 90 seconds'";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
# timeout = 570;
|
|
|
|
timeout = 7;
|
|
|
|
command = "${notify-send} 'Idling in 60 seconds'";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
# timeout = 600;
|
|
|
|
timeout = 8;
|
|
|
|
command = "${notify-send} 'Idling in 30 seconds...'";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
# timeout = 630;
|
|
|
|
timeout = 9;
|
|
|
|
command = "${swaylock} -f";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
# timeout = 660;
|
|
|
|
timeout = 10;
|
|
|
|
command = "${swaymsg} 'output * dpms off'";
|
|
|
|
resumeCommand = "${swaymsg} 'output * dpms on' & ${swaymsg} exec -- maybe-good-morning &";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
});
|
|
|
|
*/
|
|
|
|
}
|