-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.xinitrc
executable file
·166 lines (132 loc) · 3.72 KB
/
.xinitrc
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
#!/bin/zsh
# Kill process if it hangs
# bustd &
systembus-notify &
# earlyoom \
# -n \
# --avoid '(^|/)(init|systemd|Xorg|sshd|brave|librewolf)$' \
# --prefer '^(lua-language-se|rust-analyzer|nvim)$' &
# -r 10 \
# ╭─────────╮
# │ applets │
# ╰─────────╯
# Network manager
nm-applet &
# Bluetooth manager
blueman-applet &
# Auto mount USB
udiskie --tray -n --file-manager="$TERMINAL" &
# udiskie -A -n -s --appindicator --file-manager="$TERMINAL" &
birdtray &
# greenclip daemon &
# setsid -f greenclip daemon > /dev/null 2>&1 &!
# spotifyd &
ulauncher --hide-window &
# Reverse scrolling
# xinput set-prop 21 314 1
# gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll true
xrandr --dpi 96
# Set screensaver settings
xset s on
xset s 900 180
# xset dpms 0 0 0
# xset s 1200
# xset r rate 300 50 &
# Update font path
xset +fp ~/.local/share/fonts
xset fp rehash
fc-cache -fv &
# xsetroot -cursor_name left_ptr &
xsetroot -xcf ~/.icons/Capitaine-Cursors-Gruvbox-White/cursors/left_ptr 32
# xrdb -merge ~/.Xresources &
xrdb -I $HOME -merge ${HOME}/.Xresources &
xmodmap ~/.Xmodmap &
# Start X with numlock enabled
numlockx &
# Auto lock screen
# xscreensaver &
# xss-lock slock &
# xss-lock -- xscreensaver-command -lock &
# xss-lock -n /usr/share/doc/xss-lock/dim-screen.sh -- screenlock &
# ╭───────────╮
# │ xidlehook │
# ╰───────────╯
# 'xrandr --output "DP-1" --brightness .1' \
# 'xrandr --output "DP-1" --brightness 1' \
# shifts back and forth
# --timer 120 \
# 'redshift -b 0.1:0.1' \
# 'redshift -b 1.0:1.0' \
xidlehook \
--not-when-fullscreen \
--not-when-audio \
--timer 500 \
'screensaver' '' \
--timer 240 \
'xset dpms force off; pidof i3lock || screenlock' '' \
--socket "/tmp/xidlehook.sock" &
# flashfocus &
mpd &
# transmission-daemon &
# transmission-rss -f &
# ╭──────────╮
# │ redshift │
# ╰──────────╯
# Now used as a systemd service
# redshift -c "$HOME/.config/redshift/redshift.conf" &
# redshift-gtk &
# ╭────────────╮
# │ compositor │
# ╰────────────╯
/usr/bin/picom -b &
# picom-rounded -b --experimental-backends &
# use x11 compositor (transparent windows, blur background, ...) if not inside a VM
# if ! grep -q "^flags.* hypervisor" /proc/cpuinfo ; then
# if ! pgrep picom; then
# picom -b --experimental-backends --vsync || picom -b --experimental-backends
# fi
# fi
# Sync copy paste buffers
# autocutsel -fork &
# autocutsel -selection CLIPBOARD -fork &
# Wallpaper
# nitrogen --restore
# hsetroot -cover ${${(@f)"$(fd --search-path ~/Pictures -e jpg | shuf)"}[1]} &
hsetroot -cover ~/Pictures/wallpapers/LakeSideDark.jpg &
# Task daemon
pueued -dc "$XDG_CONFIG_HOME/pueue/pueue.yml" &
# Screenshot
# flameshot &
# Input handler
# fcitx -d &
# Notifications
dunst &
# Hide mouse
xbanish &
# Keybindings
sxhkd &
# To be able to use gnome-keyring
f="/etc/X11/xinit/xinitrc.d/50-systemd-user.sh"; [[ -f "$f" ]] && source "$f"
# systemctl --user import-environment DISPLAY XAUTHORITY
# dbus-update-activation-environment DISPLAY XAUTHORITY
# thunar --daemon &
# ! pidof -s pulseaudio >/dev/null 2>&1 &&
# setsid -f pulseaudio --start --exit-idle-time=-1 >/dev/null 2>&1
# MANAGER="xfce"
# case "${MANAGER}" in
# plasma)
# export DESKTOP_SESSION=plasma
# exec startplasma-x11
# ;;
# bspwm)
# exec bspwm
# ;;
# bswpm-plasma)
# export DESKTOP_SESSION=plasma
# exec KDEWM=/usr/bin/bspwm /usr/bin/startplasma-x11
# ;;
# xfce)
# exec startxfce4
# ;;
# esac
exec bspwm