Created
November 25, 2023 01:47
-
-
Save marvhus/fe215c76613a9beafed070061da9c1e7 to your computer and use it in GitHub Desktop.
startx script for starting DWM and KDE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
setxkbmap -option caps:ctrl_modifier no & | |
do_dwm () | |
{ | |
slstatus & | |
picom -b & | |
nitrogen --restore & | |
dunst -font "iosveka" & | |
flameshot & | |
nm-applet & | |
export XDG_RUNTIME_DIR="/run/user/$UID" | |
export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" | |
exec dwm > ~/.dwm.log | |
} | |
do_kde () | |
{ | |
exec startplasma-x11 | |
} | |
DE=$(echo -e "DWM\nKDE" | dmenu -p 'DE: ' -l 10) | |
case $DE in | |
"DWM") | |
echo "Doing DWM" | |
do_dwm | |
;; | |
"KDE") | |
echo "Doing KDE" | |
do_kde | |
;; | |
*) | |
echo "Unrecognized '$DE'... defaulting to DWM" | |
do_dwm | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment