mirror of https://github.com/ericonr/dotfiles.git
wayland: move waybar and swayidle to services
This commit is contained in:
parent
4c5fa61376
commit
15dc7f68f0
|
@ -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.focused_inactive $inactive_bgcolor $inactive_bgcolor $inactive_textcolor $inactive_indicator $inactive_bgcolor
|
||||||
client.unfocused $unfocused_bgcolor $unfocused_bgcolor $unfocused_textcolor $unfocused_indicator $unfocused_bgcolor
|
client.unfocused $unfocused_bgcolor $unfocused_bgcolor $unfocused_textcolor $unfocused_indicator $unfocused_bgcolor
|
||||||
|
|
||||||
## Idle configuration
|
## Idle configuratio- manual behavior
|
||||||
# Automatic behavior
|
|
||||||
exec swayidle -w \
|
|
||||||
timeout 300 'swaylock' \
|
|
||||||
timeout 600 'swaymsg "output * dpms off"' \
|
|
||||||
resume 'swaymsg "output * dpms on"' \
|
|
||||||
before-sleep 'swaylock'
|
|
||||||
# Manual behavior
|
|
||||||
bindsym $mod+Shift+x exec swaylock
|
bindsym $mod+Shift+x exec swaylock
|
||||||
bindsym --locked $mod+Mod1+a output * dpms on
|
bindsym --locked $mod+Mod1+a output * dpms on
|
||||||
bindsym --locked $mod+Mod1+z output * dpms off
|
bindsym --locked $mod+Mod1+z output * dpms off
|
||||||
|
@ -278,13 +271,13 @@ mode "resize" {
|
||||||
bindsym $mod+r mode "resize"
|
bindsym $mod+r mode "resize"
|
||||||
|
|
||||||
## Status bar
|
## Status bar
|
||||||
bar {
|
# bar {
|
||||||
id mainbar
|
# id mainbar
|
||||||
position top
|
# position top
|
||||||
mode hide
|
# mode hide
|
||||||
hidden_state hide
|
# hidden_state hide
|
||||||
swaybar_command waybar
|
# swaybar_command waybar
|
||||||
}
|
# }
|
||||||
|
|
||||||
## Services directory
|
## Services directory
|
||||||
exec runsvdir-sway
|
exec runsvdir-sway
|
||||||
|
|
|
@ -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'
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
exec waybar
|
Loading…
Reference in New Issue