aboutsummaryrefslogtreecommitdiff
path: root/public/.xinitrc
diff options
context:
space:
mode:
authorMitsuo Tokumori <mitsuo@tokumori.xyz>2025-07-16 00:18:24 +0900
committerMitsuo Tokumori <mitsuo@tokumori.xyz>2025-07-16 00:18:24 +0900
commit3ae41fadb4837262801dfddce098587e99ae609f (patch)
tree8774752137c10425553bc0054923c1b65a749390 /public/.xinitrc
parentcfe0c5ee80a0aec8ef819f15d8b6010ae842ac7a (diff)
Add dmenu-openbook.sh
Also update xinitrc to disable screen power management (prevent it to turn off after 5 minutes inactivity).
Diffstat (limited to 'public/.xinitrc')
-rw-r--r--public/.xinitrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/public/.xinitrc b/public/.xinitrc
index 8bd56ff..9070452 100644
--- a/public/.xinitrc
+++ b/public/.xinitrc
@@ -43,6 +43,7 @@ fi
# Thanks: https://bbs.archlinux.org/viewtopic.php?pid=1565341#p1565341
run_after_dwm() {
+ setxkbmap -option caps:escape
## Bind the right Alt key to Mod4 (for DWM)
## https://wiki.archlinux.org/title/Dwm#Bind_the_right_Alt_key_to_Mod4
## xmodmap -pke | grep Alt_R
@@ -50,6 +51,9 @@ run_after_dwm() {
#xmodmap -e "remove mod1 = Super_L"
# update audio status bar info (idk why it isn't immediatly available)
audio_control.sh
+ # Disable DPMS and prevent screen from blanking
+ # https://wiki.archlinux.org/title/Display_Power_Management_Signaling
+ xset s off -dpms
}
# fcitx (CJK and emoji input method)
@@ -58,7 +62,6 @@ export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
xrandr --dpi 144 # Original mac: 72, stupid windows: 96 pulse15: 188
-setxkbmap -option caps:escape
laptop-xinput_setup.sh
laptop-xrandr.sh
xbindkeys