wayland: move waybar and swayidle to services

This commit is contained in:
Érico Rolim 2020-06-09 18:50:09 -03:00
parent 4c5fa61376
commit 15dc7f68f0
3 changed files with 18 additions and 15 deletions

View File

@ -147,14 +147,7 @@ client.focused $focused_bgcolor $focused_bgcolor $focused_textcolor $focused_ind
client.focused_inactive $inactive_bgcolor $inactive_bgcolor $inactive_textcolor $inactive_indicator $inactive_bgcolor
client.unfocused $unfocused_bgcolor $unfocused_bgcolor $unfocused_textcolor $unfocused_indicator $unfocused_bgcolor
## Idle configuration
# Automatic behavior
exec swayidle -w \
timeout 300 'swaylock' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock'
# Manual behavior
## Idle configuratio- manual behavior
bindsym $mod+Shift+x exec swaylock
bindsym --locked $mod+Mod1+a output * dpms on
bindsym --locked $mod+Mod1+z output * dpms off
@ -278,13 +271,13 @@ mode "resize" {
bindsym $mod+r mode "resize"
## Status bar
bar {
id mainbar
position top
mode hide
hidden_state hide
swaybar_command waybar
}
# bar {
# id mainbar
# position top
# mode hide
# hidden_state hide
# swaybar_command waybar
# }
## Services directory
exec runsvdir-sway

View File

@ -0,0 +1,7 @@
#!/bin/sh
exec swayidle -w \
timeout 300 'swaylock' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock'

View File

@ -0,0 +1,3 @@
#!/bin/sh
exec waybar