forked from justone/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc-xmonad
46 lines (36 loc) · 1.6 KB
/
.xinitrc-xmonad
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
# Input Method (Instead of creating /etc/xprofile, run from here (relevant exports are in .zshrc))
scim -d
##TODO: CHECK : Every time I kill X server and rerun startx, mpd state gets toggled.
## Also, I think that every time I do that and mpd (or ncmpcpp) is running, the instances of systemd --user increase.
# Music server (mpd)
/usr/lib/systemd/systemd --user &
# Xdefaults
xrdb -merge ~/.Xdefaults
# Pointer setup (previous: left_ptr, crosshair)
xsetroot -cursor_name tcross
# Hide pointer when idle
unclutter &
# Move pointer to avoid problems with UpdatePointer
xdotool mousemove 2000 0
# Disable touchpad while typing
syndaemon -k -i 1 -d
# Keyboard setup for switching languages
#Just learned something interesting (/usr/share/X11/xkb/rules/xorg.lst): You can keep AltGr(switch) pressed to type with the next keymap without switching.
setxkbmap -option "" -option "grp:switch,grp:alt_shift_toggle,grp_led:scroll" -layout "us,gr,jp"
#setxkbmap -option "" -option "grp:switch,grp:alt_shift_toggle,grp_led:scroll" -layout "us,gr,jp" -variant "dvoral-alt-intl,,"
# Auto setup of brightness/color according to time
# <<not in repos?>>flux /dev/null 2>&1
# Background
feh --bg-scale ~/Pictures/Wallpapers/snow_leopard_flopped.jpg
#feh --bg-scale ~/Pictures/Wallpapers/canyons.jpg #feh --bg-scale ~/Pictures/Wallpapers/tree_leaning_over_river.jpg
# Composite window manager
xcompmgr -c &
# Conky
conky -d
# Trayer
exec trayer --edge top --align center --SetDockType true --SetPartialStrut true --expand true --transparent true --alpha 0 --tint 0x000000 --width 10 --height 16 &
# Xxkb
xxkb &
# Main
exec /usr/bin/xmonad