-
Notifications
You must be signed in to change notification settings - Fork 1
/
xprofile
31 lines (24 loc) · 1023 Bytes
/
xprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# natively sourced by GDM
# sourced in ~/.xinitrc for i3
# more info: https://wiki.archlinux.org/index.php/Xprofile
# load custom keyboard layout or fallback to de(nodeadkeys)
setxkbmap -layout pylipp 2> /dev/null || setxkbmap de -variant nodeadkeys
# swap Escape key and Capslock
setxkbmap -option caps:escape
# Lock screen after inactivity; suspend on lid close
# https://www.reddit.com/r/i3wm/comments/e6jife/locking_screen_on_lid_close/
xset s 600
xss-lock -- ~/.i3/system_control lock &
# apply screenlayout
~/.files/systems/"$(hostname)"/screenlayout.sh
# notification daemon
dunst &
# network manager trayicon, if not already displayed
# Avoid accessibility bus warning: https://unix.stackexchange.com/a/230442
# Actually display icon: https://askubuntu.com/a/1001864
pgrep -x nm-applet >/dev/null || NO_AT_BRIDGE=1 dbus-launch nm-applet &
# apt install caffeine
command -v caffeine-indicator >/dev/null 2>&1 && dbus-launch caffeine-indicator &
# utility scripts
~/.i3/reload_keyboard &
~/.i3/check_battery &