Attempt to figure out the various xinit files

This commit is contained in:
Ivan Malison 2016-09-13 02:54:03 -07:00
parent b85f88c281
commit 070a130d0a
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
3 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,18 @@
function command_exists {
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
xrdb -merge .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 &

18
dotfiles/xsession Normal file
View File

@ -0,0 +1,18 @@
#!/bin/bash -*- mode: sh; -*-
function command_exists {
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
xrdb -merge .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

View File

@ -1 +0,0 @@
setxkbmap -layout "$(setxkbmap -print | awk -F + '/xkb_symbols/ {print $2}')" -option ctrl:nocaps