aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-02-20 17:27:05 -0300
committerEuAndreh <eu@euandre.org>2023-02-20 17:27:05 -0300
commit839169411427daab01bd73abe6e5ea2587636e66 (patch)
tree0e94d676b968c4b64ecf15d6609b593215ea23b5
parentbin/upgrade: Restrict upgrade to up-to 2 hours (diff)
downloaddotfiles-839169411427daab01bd73abe6e5ea2587636e66.tar.gz
dotfiles-839169411427daab01bd73abe6e5ea2587636e66.tar.xz
etc/sh/rc: Join both "if $DISPLAY" sections
-rw-r--r--etc/sh/rc9
1 files changed, 6 insertions, 3 deletions
diff --git a/etc/sh/rc b/etc/sh/rc
index f687142..a6ff24b 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -291,9 +291,6 @@ f() {
r() {
. ~/.profile
- if [ -n "$DISPLAY" ]; then
- xset r rate 225 100
- fi
}
_edit_without_executing() {
@@ -336,8 +333,14 @@ if [ -r "$F" ]; then
. "$F"
fi
+
+#
+# Only for graphical sessions
+#
+
if [ -n "$DISPLAY" ]; then
xset s 300
+ xset r rate 225 100
fi
#