diff options
Diffstat (limited to 'dots')
-rw-r--r-- | dots/sway/.config/sway/config.d/10-autostart-applications | 7 | ||||
-rw-r--r-- | dots/sway/.config/sway/config.d/bindings.j2 | 1 | ||||
-rw-r--r-- | dots/sway/.config/sway/config.d/theme.j2 | 9 | ||||
-rw-r--r-- | dots/sway/.config/swaylock/config.j2 | 39 |
4 files changed, 49 insertions, 7 deletions
diff --git a/dots/sway/.config/sway/config.d/10-autostart-applications b/dots/sway/.config/sway/config.d/10-autostart-applications index 8ee3960..a6f182b 100644 --- a/dots/sway/.config/sway/config.d/10-autostart-applications +++ b/dots/sway/.config/sway/config.d/10-autostart-applications @@ -7,9 +7,9 @@ exec hash dbus-update-activation-environment 2>/dev/null && \ dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK exec swayidle -w \ - timeout 500 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' \ - timeout 700 'systemctl suspend' + timeout 300 'swaylock' \ + timeout 600 'swaymsg "output * dpms off"' \ + resume 'swaymsg "output * dpms on"' exec gnome-keyring-daemon --daemonize --start --components=gpg,pkcs11,secrets,ssh @@ -19,7 +19,6 @@ exec_always { '[ -x "$(command -v playerctl)" ] && pkill playerctl; playerctl -a metadata --format \'{{status}} {{title}}\' --follow | while read line; do pkill -RTMIN+5 waybar; done' } - exec nm-applet --indicator bar { swaybar_command waybar diff --git a/dots/sway/.config/sway/config.d/bindings.j2 b/dots/sway/.config/sway/config.d/bindings.j2 index 10fe0b4..efaf572 100644 --- a/dots/sway/.config/sway/config.d/bindings.j2 +++ b/dots/sway/.config/sway/config.d/bindings.j2 @@ -18,6 +18,7 @@ bindsym --to-code { } bindsym --to-code { + $sup+$ed+q swaylock $sup+Shift+r reload $sup+f fullscreen diff --git a/dots/sway/.config/sway/config.d/theme.j2 b/dots/sway/.config/sway/config.d/theme.j2 index 7c796ae..a55c03b 100644 --- a/dots/sway/.config/sway/config.d/theme.j2 +++ b/dots/sway/.config/sway/config.d/theme.j2 @@ -1,17 +1,20 @@ gaps inner 12 gaps outer 0 -# hide titlebar on windows default_border pixel 2 -font pango:{{ theme.sway.font }} - smart_borders on smart_gaps off exec swww-daemon -f xrgb exec systemctl start --user wallpaper +font pango:{{ theme.sway.font }} + +exec gsettings set org.gnome.desktop.interface cursor-theme {{ theme.gtk.cursor }} +exec gsettings set org.gnome.desktop.interface color-scheme prefer-{{ "dark" if theme.gtk.prefer_dark else "light" }} +exec gsettings set org.gnome.desktop.interface gtk-theme '{{ theme.gtk.theme }}' + #class border backgr text indicator child_border #client.focused {{ theme.colors.regular4 }} {{ theme.colors.regular4 }} {{ theme.colors.bright7 }} {{ theme.colors.bright4 }} {{ theme.colors.regular0 }} #client.focused_inactive {{ theme.colors.regular0 }} {{ theme.colors.bright0 }} {{ theme.colors.bright7 }} {{ theme.colors.regular4 }} {{ theme.colors.bright0 }} diff --git a/dots/sway/.config/swaylock/config.j2 b/dots/sway/.config/swaylock/config.j2 new file mode 100644 index 0000000..a43037d --- /dev/null +++ b/dots/sway/.config/swaylock/config.j2 @@ -0,0 +1,39 @@ +daemonize +show-failed-attempts +clock +screenshot +effect-blur=13x13 +effect-vignette=0.5:0.5 +color={{ theme.colors.foreground }} +font={{ theme.swaylock.font }} +font-size=48 +indicator +indicator-radius=200 +indicator-thickness=20 +line-color={{ theme.colors.regular4 }} +ring-color={{ theme.colors.foreground }} +inside-color={{ theme.colors.background }} +key-hl-color={{ theme.colors.bright6 }} +separator-color=00000000 +text-color={{ theme.colors.foreground }} +text-caps-lock-color="" +line-ver-color={{ theme.colors.foreground }} +ring-ver-color={{ theme.colors.foreground }} +inside-ver-color={{ theme.colors.background }} +text-ver-color={{ theme.colors.bright6 }} +ring-wrong-color={{ theme.colors.bright1 }} +text-wrong-color={{ theme.colors.bright1 }} +inside-wrong-color={{ theme.colors.background }} +inside-clear-color={{ theme.colors.background }} +text-clear-color={{ theme.colors.bright6 }} +ring-clear-color={{ theme.colors.bright6 }} +line-clear-color={{ theme.colors.bright5 }} +line-wrong-color={{ theme.colors.bright1 }} +bs-hl-color={{ theme.colors.bright3 }} +grace=2 +fade-in=0.4 +grace-no-mouse +grace-no-touch +datestr=%a, %B %e +timestr=%I:%M %p +ignore-empty-password |