Back to simple xinitrc

This commit is contained in:
Ivan Malison 2016-09-13 12:50:37 -07:00
parent 82f6dbed7b
commit eb3657b0c9
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -1,18 +1,3 @@
function command_exists { # -*- mode: sh -*-
hash "$1" 2>/dev/null 1>/dev/null
}
function run_if_exists {
command_exists "$1" && $@
}
setxkbmap -layout "$(setxkbmap -print | awk -F + '/xkb_symbols/ {print $2}')" -option ctrl:nocaps setxkbmap -layout "$(setxkbmap -print | awk -F + '/xkb_symbols/ {print $2}')" -option ctrl:nocaps
xrdb -merge .Xresources xrdb -merge "$HOME/.Xresources"
run_if_exists stalonetray &
run_if_exists xscreensaver -no-splash &
run_if_exists nm-applet --sm-disable &
run_if_exists feh --bg-scale /usr/share/backgrounds/gnome/Blinds.jpg &
run_if_exists copyq &
run_if_exists copyq hide
run_if_exists rofi &