diff --git a/wayland/.config/sway/config b/wayland/.config/sway/config index 89cdbc2..3023517 100644 --- a/wayland/.config/sway/config +++ b/wayland/.config/sway/config @@ -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 diff --git a/wayland/.local/share/wayland-services/swayidle/run b/wayland/.local/share/wayland-services/swayidle/run new file mode 100755 index 0000000..da4de2d --- /dev/null +++ b/wayland/.local/share/wayland-services/swayidle/run @@ -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' diff --git a/wayland/.local/share/wayland-services/waybar/run b/wayland/.local/share/wayland-services/waybar/run new file mode 100755 index 0000000..06042c6 --- /dev/null +++ b/wayland/.local/share/wayland-services/waybar/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec waybar