-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexecutable_dot_xinitrc
More file actions
80 lines (52 loc) · 1.8 KB
/
executable_dot_xinitrc
File metadata and controls
80 lines (52 loc) · 1.8 KB
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
#!/bin/bash
# Global xinitrc #######################################################
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/*.sh ; do
. "$f"
done
unset f
fi
# System profile #######################################################
# System-wide profile.
[ -r "/etc/profile" ] && . "/etc/profile"
# Per-user profile.
[ -r "$HOME/.profile" ] && . "$HOME/.profile"
# System daemons #######################################################
# D-Bus session bus.
eval "$(dbus-launch --sh-syntax --exit-with-session)"
# SSH agent.
eval "$(ssh-agent -s)"
# Xfce polkit agent (requires D-Bus).
/usr/libexec/xfce-polkit &
# Xfce settings daemon (requires D-Bus).
xfsettingsd --replace &
# PipeWire multimedia service (requires D-Bus).
pipewire &
# Input methods ########################################################
fcitx5 -rd
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export SDL_IM_MODULE=fcitx
export GLFW_IM_MODULE=ibus
export XMODIFIERS=@im=fcitx
# Environment variables ################################################
export QT_STYLE_OVERRIDE=kvantum
# X server configuration ###############################################
# Load X resources from other packages.
if [ -d ~/.Xresources.d ] ; then
for f in ~/.Xresources.d/*; do
xrdb -merge "$f"
done
unset f
fi
# Load per-machine X resources.
xrdb -merge ~/.Xresources
# Enable tap to click.
xinput set-prop "PIXA3854:00 093A:0274 Touchpad" "libinput Tapping Enabled" 1
# Enable natural scrolling.
xinput set-prop "PIXA3854:00 093A:0274 Touchpad" "libinput Natural Scrolling Enabled" 1
# Set cursor name.
xsetroot -cursor_name left_ptr
# X session ############################################################
# Run cached Xmonad.
exec "$HOME/.cache/xmonad/xmonad-x86_64-linux"