Merge branch 'main' of gitea:ezri/dotfiles
This commit is contained in:
@@ -13,7 +13,7 @@ import time
|
|||||||
def get_date():
|
def get_date():
|
||||||
"""Return the current date as a JSON object string."""
|
"""Return the current date as a JSON object string."""
|
||||||
return datetime.datetime.now().strftime(
|
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}'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# -*-conf-*-
|
# -*-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'
|
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
|
lock ~/.local/bin/screenlock
|
||||||
before-sleep 'loginctl lock-session'
|
before-sleep 'loginctl lock-session'
|
||||||
|
|||||||
Reference in New Issue
Block a user