summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-08-02 13:01:33 -0700
committerElizabeth Hunt <me@liz.coffee>2025-08-02 13:02:05 -0700
commite6c75773be5d9cf9d4c26cf2e7d0b243f6317d0d (patch)
treeac3903dd10621049c484f2ea3765f6a0a9b0e9e5
parentb7db99c895ab2d49264d77f9d760ef61acc80378 (diff)
downloaddotfiles-e6c75773be5d9cf9d4c26cf2e7d0b243f6317d0d.tar.gz
dotfiles-e6c75773be5d9cf9d4c26cf2e7d0b243f6317d0d.zip
Makes swaylock pretty
-rw-r--r--context.json5
-rw-r--r--dots/sway/.config/sway/config.d/10-autostart-applications7
-rw-r--r--dots/sway/.config/sway/config.d/bindings.j21
-rw-r--r--dots/sway/.config/sway/config.d/theme.j29
-rw-r--r--dots/sway/.config/swaylock/config.j239
5 files changed, 53 insertions, 8 deletions
diff --git a/context.json b/context.json
index 95fa1f0..10a8f94 100644
--- a/context.json
+++ b/context.json
@@ -322,11 +322,14 @@
"font": "Lilex Nerd Font"
},
"sway": {
- "font": "monospace 11"
+ "font": "Lilex Nerd Font 11"
},
"sketchybar": {
"font": "Lekton Nerd Font Mono"
},
+ "swaylock": {
+ "font": "Lekton Nerd Font Mono"
+ },
"borders": {
"active_color": "fbf1c7df",
"inactive_color": "a998a45f"
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