aboutsummaryrefslogtreecommitdiff
path: root/etc/sh/rc
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-02-20 16:35:27 -0300
committerEuAndreh <eu@euandre.org>2023-02-20 16:47:10 -0300
commite0b2d75cfb7c54d53c2841feb6dbd1ad749e54b4 (patch)
tree405448ed9327692cbeaad64b407a014720b1124f /etc/sh/rc
parentetc/i3/config: Cleanup (diff)
downloaddotfiles-e0b2d75cfb7c54d53c2841feb6dbd1ad749e54b4.tar.gz
dotfiles-e0b2d75cfb7c54d53c2841feb6dbd1ad749e54b4.tar.xz
Use xss-lock, i3lock and xset to lock after 5 minutes on usurpador
Diffstat (limited to 'etc/sh/rc')
-rw-r--r--etc/sh/rc8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/sh/rc b/etc/sh/rc
index 4e93a30..f687142 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -291,7 +291,9 @@ f() {
r() {
. ~/.profile
- xset r rate 225 100
+ if [ -n "$DISPLAY" ]; then
+ xset r rate 225 100
+ fi
}
_edit_without_executing() {
@@ -334,7 +336,9 @@ if [ -r "$F" ]; then
. "$F"
fi
-
+if [ -n "$DISPLAY" ]; then
+ xset s 300
+fi
#
# From here on, bash-specific things.