use mako for notifications, swayidle for autolock
This commit is contained in:
parent
ab54869ac8
commit
9be927dcc2
3 changed files with 30 additions and 2 deletions
|
@ -37,13 +37,15 @@ bindsym Shift+F6 move container to workspace 6
|
||||||
bindsym Shift+F7 move container to workspace 7
|
bindsym Shift+F7 move container to workspace 7
|
||||||
bindsym Shift+F8 move container to workspace 8
|
bindsym Shift+F8 move container to workspace 8
|
||||||
bindsym Shift+F9 move container to workspace 9
|
bindsym Shift+F9 move container to workspace 9
|
||||||
|
bindsym Mod4+Shift+c kill
|
||||||
bindsym Mod4+Return exec alacritty
|
bindsym Mod4+Return exec alacritty
|
||||||
bindsym Mod4+p exec rofi -font "Roboto Mono 10" -show run
|
bindsym Mod4+p exec rofi -font "Roboto Mono 10" -show run
|
||||||
bindsym Mod4+l exec swaylock -c 000000 -i /home/dln/i3lock.png
|
bindsym Mod4+l exec swaylock -c 000000 -i /home/dln/i3lock.png
|
||||||
|
bindsym Mod4+space exec makoctl dismiss -a
|
||||||
|
|
||||||
floating_modifier Mod4
|
floating_modifier Mod4
|
||||||
bindsym Mod4+Shift+space floating toggle
|
bindsym Mod4+Shift+f floating toggle
|
||||||
bindsym Mod4+space focus mode_toggle
|
bindsym Mod4+f focus mode_toggle
|
||||||
|
|
||||||
hide_edge_borders both
|
hide_edge_borders both
|
||||||
smart_borders on
|
smart_borders on
|
||||||
|
|
11
.config/systemd/user/mako.service
Normal file
11
.config/systemd/user/mako.service
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=A lightweight Wayland notification daemon
|
||||||
|
Documentation=man:mako(1)
|
||||||
|
PartOf=graphical-session.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/bin/mako --font 'IBM Plex Sans 20' --anchor bottom-right --margin 5
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sway-session.target
|
15
.config/systemd/user/swayidle.service
Normal file
15
.config/systemd/user/swayidle.service
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Idle manager for Wayland
|
||||||
|
Documentation=man:swayidle(1)
|
||||||
|
PartOf=graphical-session.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/bin/swayidle -w \
|
||||||
|
timeout 300 'swaylock -f -c 000000 -i /home/dln/i3lock.png' \
|
||||||
|
timeout 600 'swaymsg "output * dpms off"' \
|
||||||
|
resume 'swaymsg "output * dpms on"' \
|
||||||
|
before-sleep 'swaylock -f -c 000000 -i /home/dln/i3lock.png'
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sway-session.target
|
Loading…
Reference in a new issue