From 622aabcc8b5fd77ec2f07e4cb3511269ce0d7357 Mon Sep 17 00:00:00 2001 From: Ezri Brimhall Date: Tue, 19 Mar 2024 16:22:55 -0600 Subject: [PATCH 1/3] Added gpg updatestartuptty command to swayidle --- .config/sway/swayidle | 1 + 1 file changed, 1 insertion(+) create mode 120000 .config/sway/swayidle diff --git a/.config/sway/swayidle b/.config/sway/swayidle new file mode 120000 index 0000000..7ff72f1 --- /dev/null +++ b/.config/sway/swayidle @@ -0,0 +1 @@ +swayidle##class.desktop \ No newline at end of file From d68da621232205d3ccc83bdfc641d3afc4757079 Mon Sep 17 00:00:00 2001 From: Ezri Brimhall Date: Tue, 19 Mar 2024 16:23:13 -0600 Subject: [PATCH 2/3] fixed dow tag for python strftime --- .config/eww/scripts/date.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/eww/scripts/date.py b/.config/eww/scripts/date.py index 8203922..6bd98b0 100755 --- a/.config/eww/scripts/date.py +++ b/.config/eww/scripts/date.py @@ -13,7 +13,7 @@ import time def get_date(): """Return the current date as a JSON object string.""" return datetime.datetime.now().strftime( - '{"hour": "%H", "minute": "%M", "second": "%S", "day": "%d", "month": "%m", "year": "%Y", "dow": "%w","month_name": "%B", "unix": %s}' + '{"hour": "%H", "minute": "%M", "second": "%S", "day": "%d", "month": "%m", "year": "%Y", "dow": "%A","month_name": "%B", "unix": %s}' ) From bd9267fd5b8fd7d3c5f1b892f403831e8ad0f915 Mon Sep 17 00:00:00 2001 From: Ezri Brimhall Date: Tue, 19 Mar 2024 16:23:43 -0600 Subject: [PATCH 3/3] added gpg updatestartuptty command to swayidle (for real) --- .config/sway/swayidle | 1 - .config/sway/swayidle##class.desktop | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 120000 .config/sway/swayidle diff --git a/.config/sway/swayidle b/.config/sway/swayidle deleted file mode 120000 index 7ff72f1..0000000 --- a/.config/sway/swayidle +++ /dev/null @@ -1 +0,0 @@ -swayidle##class.desktop \ No newline at end of file diff --git a/.config/sway/swayidle##class.desktop b/.config/sway/swayidle##class.desktop index 9d76319..d8b8803 100644 --- a/.config/sway/swayidle##class.desktop +++ b/.config/sway/swayidle##class.desktop @@ -1,6 +1,6 @@ # -*-conf-*- -timeout 10 'pgrep swaylock &> /dev/null && swaymsg "output * power off"' resume 'pgrep swaylock &> /dev/null && swaymsg "output * power on"' +timeout 10 'pgrep swaylock &> /dev/null && swaymsg "output * power off"' resume 'pgrep swaylock &> /dev/null && swaymsg "output * power on" && gpg-connect-agent UPDATESTARTUPTTY /bye' timeout 15 'pgrep swaylock &> /dev/null && pkill -u 1000 -SIGSTOP electron' resume 'pgrep swaylock &> /dev/null && pkill -u 1000 -SIGCONT electron' lock ~/.local/bin/screenlock before-sleep 'loginctl lock-session'