Remove bar-wide clicks for polybar, update and cleanup some scripts
This commit is contained in:
@ -2,17 +2,17 @@
|
||||
|
||||
# this file is executed when calling startx
|
||||
|
||||
# To run a different WM, set session="WM" below, or run:
|
||||
# to start a different WM, set session="WM" below, or in console run:
|
||||
# startx ~/.xinitrc WM
|
||||
|
||||
|
||||
# Session to run if none passed via startx
|
||||
session=${1:-openbox}
|
||||
# session to run if none passed as first arg ($1)
|
||||
session="${1:-openbox}"
|
||||
|
||||
# set environment wm for use in scripts
|
||||
export WM="$session"
|
||||
|
||||
# Default Arch xinit scripts
|
||||
# default arch xinit scripts
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/*.sh; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
@ -25,7 +25,8 @@ fi
|
||||
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
|
||||
[ -f ~/.xprofile ] && source ~/.xprofile
|
||||
|
||||
# some things to start for awesome wm, other wm already have these started elsewhere
|
||||
# some things to start for awesome
|
||||
# other wm already have these started elsewhere
|
||||
if [[ $session == "awesome" ]]; then
|
||||
|
||||
# keyring for storing passwords
|
||||
@ -46,22 +47,22 @@ if [[ $session == "awesome" ]]; then
|
||||
fi
|
||||
|
||||
# display timeout and sleep
|
||||
xset s 3600 3600
|
||||
xset dpms 3600 3700 4000
|
||||
# xset s 3600 3600
|
||||
# xset dpms 3600 3700 4000
|
||||
|
||||
# keyboard repeat rate
|
||||
xset r rate 400 50
|
||||
kbdrate -d 400 -r 50
|
||||
# xset r rate 400 50
|
||||
# kbdrate -d 400 -r 50
|
||||
|
||||
# 1/1 mouse acceleration
|
||||
xset m 1/1
|
||||
# 1/1 mouse acceleration (no acceleration)
|
||||
# xset m 1/1
|
||||
|
||||
# Do NOT put commands below the exec lines
|
||||
# do NOT put commands below the exec lines
|
||||
case $session in
|
||||
i3|i3wm) exec i3 ;;
|
||||
bsp|bspwm) exec bspwm ;;
|
||||
i3|i3wm) exec i3 ;;
|
||||
bsp|bspwm) exec bspwm ;;
|
||||
xfce|xfce4) exec startxfce4 ;;
|
||||
openbox) exec openbox-session ;;
|
||||
awesome) exec awesome ;;
|
||||
*) exec "$1" # Unknown, try running it
|
||||
openbox) exec openbox-session ;;
|
||||
awesome) exec awesome ;;
|
||||
*) exec "$session" # Unknown, try running it
|
||||
esac
|
||||
|
Reference in New Issue
Block a user