2023-04-30 17:36:12 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-08-23 19:51:32 +02:00
|
|
|
sudo ryzenadj-service &
|
|
|
|
|
2024-01-08 16:21:00 +01:00
|
|
|
# disbale laptop monitor if external is connected
|
|
|
|
external-monitor.sh
|
|
|
|
|
|
|
|
# toggle tear-free on
|
|
|
|
toggle-xrandr on
|
2023-04-30 17:36:12 +02:00
|
|
|
|
2023-10-22 10:45:51 +02:00
|
|
|
# Set disable screensaver and set dmps to 0
|
2023-08-23 19:51:32 +02:00
|
|
|
xset dpms 0 0 0
|
2023-10-22 10:45:51 +02:00
|
|
|
xset s off
|
|
|
|
xset s noblank
|
2023-08-23 19:51:32 +02:00
|
|
|
|
2023-04-30 17:36:12 +02:00
|
|
|
# Load xresources
|
2024-01-08 16:21:00 +01:00
|
|
|
xrdb "$HOME"/.config/X11/xresources
|
2023-04-30 17:36:12 +02:00
|
|
|
|
|
|
|
# Hide the mouse after 5 seconds
|
|
|
|
unclutter --timeout 5 &
|
|
|
|
|
|
|
|
# Fix mouse cursor
|
|
|
|
xsetroot -cursor_name left_ptr
|
|
|
|
|
|
|
|
# Replace caps lock with escape
|
|
|
|
setxkbmap -option caps:escape
|
|
|
|
|
|
|
|
# Use the xresources settings
|
2024-01-08 16:21:00 +01:00
|
|
|
xrdb -merge "$HOME"/.Xresources
|
2023-04-30 17:36:12 +02:00
|
|
|
|
|
|
|
# Recompile xmonad
|
|
|
|
xmonad --recompile
|
|
|
|
|
|
|
|
# Set wallpaper
|
2024-01-08 16:21:00 +01:00
|
|
|
xwallpaper --stretch "$HOME"/pics/wallpapers/wawe.jpg
|
2023-08-23 19:51:32 +02:00
|
|
|
|
2024-01-08 16:21:00 +01:00
|
|
|
[ -f "$HOME/.cache/gaming.lock" ] && rm "$HOME"/.cache/gaming.lock
|
2023-04-30 17:36:12 +02:00
|
|
|
|
|
|
|
# Run xmonad with dbus
|
|
|
|
exec dbus-launch --exit-with-session xmonad
|