update xinitrc and added natural scrolling and force dark GTK theming
This commit is contained in:
@@ -1,31 +1,36 @@
|
|||||||
dwmblocks &
|
#!/bin/sh
|
||||||
xbindkeys &
|
|
||||||
picom &
|
|
||||||
xss-lock -l slock &
|
|
||||||
feh --bg-scale $HOME/Pictures/wallpapers/glados.jpg &
|
|
||||||
bluetoothctl power off &
|
|
||||||
setxkbmap -layout "us,cz" -variant ",qwerty" -option "grp:alt_shift_toggle" &
|
|
||||||
|
|
||||||
export DISPLAY=:0
|
# GTK Theming
|
||||||
export XAUTHORITY=/home/imp/.Xauthority
|
export GTK_THEME=Adwaita:dark
|
||||||
|
|
||||||
xrandr --output DP-2-1 --off
|
|
||||||
sleep 2
|
|
||||||
|
|
||||||
|
# Set up monitors. Confirm these names with: xrandr --query
|
||||||
xrandr \
|
xrandr \
|
||||||
--output eDP-1 \
|
--output eDP-1 --mode 1920x1080 --rate 60 --primary \
|
||||||
--mode 1920x1080 \
|
--output DP-2-1 --mode 1920x1080 --same-as eDP-1
|
||||||
--rate 60 \
|
|
||||||
--pos 0x0 \
|
|
||||||
--primary \
|
|
||||||
--output DP-2-1 \
|
|
||||||
--mode 1920x1080 \
|
|
||||||
--rate 60 \
|
|
||||||
--pos 0x0 \
|
|
||||||
--same-as eDP-1
|
|
||||||
|
|
||||||
xset dpms force on
|
# Set the keyboard layouts
|
||||||
|
setxkbmap -layout "us,cz" -variant ",qwerty" -option "grp:alt_shift_toggle"
|
||||||
|
|
||||||
|
# Natural scrolling for the touchpad (requires xinput and the libinput driver)
|
||||||
|
xinput list --name-only | while IFS= read -r device; do
|
||||||
|
case "$device" in
|
||||||
|
*[Tt]ouch[Pp]ad*)
|
||||||
|
xinput set-prop "$device" "libinput Natural Scrolling Enabled" 1 2>/dev/null
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
# Start desktop services
|
||||||
|
bluetoothctl power off &
|
||||||
|
picom &
|
||||||
|
xbindkeys &
|
||||||
|
xss-lock -l slock &
|
||||||
|
feh --bg-scale "$HOME/Obrázky/wallpapers/glados.jpg" &
|
||||||
|
|
||||||
|
dwmblocks &
|
||||||
|
|
||||||
|
# ~~Keep this last: it replaces the script with dwm~~
|
||||||
exec dwm
|
exec dwm
|
||||||
|
|
||||||
systemctl --user restart wireplumber pipewire pipewire-pulse; pkill -RTMIN+2 dwmblocks
|
# Restart audio services before starting the status bar
|
||||||
|
systemctl --user restart wireplumber pipewire pipewire-pulse;pkill -RTMIN+2 dwmblocks
|
||||||
|
|||||||
Reference in New Issue
Block a user