From ff1386de7f7cb385a8b5f59a8588194eb3f1774a Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sat, 4 Oct 2025 14:43:28 -0700 Subject: Some stuff --- dots/home/scripts/wallpaper.sh | 5 +++++ dots/sway/.config/sway/config.d/bindings.j2 | 9 ++++++++- dots/sway/.config/sway/config.d/theme.j2 | 20 +++++++++++--------- .../.config/systemd/user/wallpaper.service.j2 | 2 +- 4 files changed, 25 insertions(+), 11 deletions(-) create mode 100644 dots/home/scripts/wallpaper.sh (limited to 'dots') diff --git a/dots/home/scripts/wallpaper.sh b/dots/home/scripts/wallpaper.sh new file mode 100644 index 0000000..47c604c --- /dev/null +++ b/dots/home/scripts/wallpaper.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +wallpaper=`find -L $HOME/Pictures/wallpapers -type f | shuf -n1` +swww img $wallpaper --transition-type random + diff --git a/dots/sway/.config/sway/config.d/bindings.j2 b/dots/sway/.config/sway/config.d/bindings.j2 index 8737fa7..249d0c8 100644 --- a/dots/sway/.config/sway/config.d/bindings.j2 +++ b/dots/sway/.config/sway/config.d/bindings.j2 @@ -1,14 +1,19 @@ +input "type:keyboard" { + xkb_options caps:ctrl_modifier +} + set $mod {{ window_manager.key.mod }} set $mov {{ window_manager.key.mov }} set $sup {{ window_manager.key.sup }} set $ed {{ window_manager.key.ed }} +floating_modifier $mod set $left h set $down j set $up k set $right l -set $browser zen-browser +set $browser chromium set $term alacritty set $launcher wofi @@ -94,3 +99,5 @@ bindsym { XF86AudioPrev exec playerctl previous } +tiling_drag enable +mouse_warping container diff --git a/dots/sway/.config/sway/config.d/theme.j2 b/dots/sway/.config/sway/config.d/theme.j2 index 9eeb1a8..5588a6a 100644 --- a/dots/sway/.config/sway/config.d/theme.j2 +++ b/dots/sway/.config/sway/config.d/theme.j2 @@ -1,21 +1,23 @@ gaps inner 12 gaps outer 0 -default_border pixel 2 - +default_border pixel 3 smart_borders on smart_gaps off font pango:{{ theme.sway.font }} +seat seat0 xcursor_theme {{ theme.sway.cursor }} 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 }} -#client.unfocused {{ theme.colors.regular0 }} {{ theme.colors.background }} {{ theme.colors.bright0 }} {{ theme.colors.regular4 }} {{ theme.colors.regular4 }} -#client.urgent {{ theme.colors.regular0 }} {{ theme.colors.regular1 }} {{ theme.colors.bright7 }} {{ theme.colors.regular1 }} {{ theme.colors.regular1 }} -#client.placeholder {{ theme.colors.background }} {{ theme.colors.regular0 }} {{ theme.colors.bright7 }} {{ theme.colors.background }} {{ theme.colors.regular4 }} -#client.background {{ theme.colors.bright7 }} +set $border_focused {{ theme.colors.bright6 }} +set $border_unfocused {{ theme.colors.regular6 }} +set $focused_background {{ theme.colors.regular7 }} +set $unfocused_background {{ theme.colors.background }} +set $font_color {{ theme.colors.foreground }} + +client.focused $border_focused $focused_background $font_color +client.unfocused $border_unfocused $unfocused_background $font_color +client.focused_inactive $border_unfocused $unfocused_background $font_color diff --git a/dots/systemd/.config/systemd/user/wallpaper.service.j2 b/dots/systemd/.config/systemd/user/wallpaper.service.j2 index 511a82e..8a22b76 100644 --- a/dots/systemd/.config/systemd/user/wallpaper.service.j2 +++ b/dots/systemd/.config/systemd/user/wallpaper.service.j2 @@ -3,7 +3,7 @@ Description=Sets wallpaper randomly every 30 mins [Service] Restart=always -RestartSec=1800s +RestartSec=3600s ExecStart=/bin/bash {{ user.home }}/scripts/wallpaper.sh Sysloglevel=5 LogLevelMax=5 -- cgit v1.2.3-70-g09d2