mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-20 09:14:34 +05:30
Debloated my xmonad startup..
This commit is contained in:
parent
5d91e9d00b
commit
4808d9df19
|
@ -37,7 +37,6 @@ colorSecondary=${26}
|
|||
#
|
||||
## Kill previous instances of applications (Prevents multiple instances of the following if XMonad is restarted durin the X session)
|
||||
killall xmobar
|
||||
killall twmnd
|
||||
killall trayer
|
||||
killall nm-applet
|
||||
killall nextcloud
|
||||
|
@ -47,55 +46,12 @@ killall syncthing-gtk
|
|||
killall discord
|
||||
killall qjoypad
|
||||
|
||||
# pre-launch configurations
|
||||
# dbus-update-activation-environment --all &
|
||||
# ~/.local/bin/setup-external-monitor.sh &
|
||||
# picom --experimental-backends &
|
||||
# Launch necessary desktop applications
|
||||
emacs --daemon &
|
||||
picom --animations --animation-window-mass 1 --animation-for-open-window zoom --animation-stiffness 200 --experimental-backends && # requires picom-pijulius
|
||||
xset r rate 350 50 &
|
||||
setxkbmap -option caps:escape &
|
||||
# betterdiscordctl --d-install flatpak install &
|
||||
|
||||
# setup necessary environment variables
|
||||
# export QT_QPA_PLATFORMTHEME="qt5ct" &
|
||||
# export GTK_THEME=$themeGTKName
|
||||
|
||||
sed -i 's/background_color=.*/background_color='$nbcolor'/' ~/.config/twmn/twmn.conf &
|
||||
sed -i 's/foreground_color=.*/foreground_color='$sbcolor'/' ~/.config/twmn/twmn.conf &
|
||||
|
||||
sed -i 's/colors: .*/colors: *'$themeAlacrittyName'/' ~/.config/alacritty/alacritty.yml &
|
||||
sed -i 's/colors: .*/colors: *'$themeAlacrittyName'/' ~/.config/alacritty/alacritty.org &
|
||||
|
||||
sed -i "s/(setq doom-theme .*/(setq doom-theme '"$themeDoomEmacsName")/" ~/.doom.d/config.el &
|
||||
sed -i "s/(setq doom-theme .*/(setq doom-theme '"$themeDoomEmacsName")/" ~/.doom.d/doom.org &
|
||||
sed -i "s/(setq doom-theme .*/(setq doom-theme '"$themeDoomEmacsName")/" ~/.doom.d/doom-pub.org &
|
||||
|
||||
cp -f ~/.config/xmobar/base-xmobarrc ~/.config/xmobar/xmobarrc &&
|
||||
sed -i "s/colorBgNormal/"$colorBgNormal"/g" ~/.config/xmobar/xmobarrc # normal background
|
||||
sed -i "s/colorBgBright/"$colorBgBright"/g" ~/.config/xmobar/xmobarrc # bright background
|
||||
sed -i "s/colorFgNormal/"$colorFgNormal"/g" ~/.config/xmobar/xmobarrc # normal foreground
|
||||
sed -i "s/color01Normal/"$color01Normal"/g" ~/.config/xmobar/xmobarrc # normal black
|
||||
sed -i "s/color01Bright/"$color01Bright"/g" ~/.config/xmobar/xmobarrc # bright black
|
||||
sed -i "s/color02Normal/"$color02Normal"/g" ~/.config/xmobar/xmobarrc # normal red
|
||||
sed -i "s/color02Bright/"$color02Bright"/g" ~/.config/xmobar/xmobarrc # bright red
|
||||
sed -i "s/color03Normal/"$color03Normal"/g" ~/.config/xmobar/xmobarrc # normal green
|
||||
sed -i "s/color03Bright/"$color03Bright"/g" ~/.config/xmobar/xmobarrc # bright green
|
||||
sed -i "s/color04Normal/"$color04Normal"/g" ~/.config/xmobar/xmobarrc # normal yellow
|
||||
sed -i "s/color04Bright/"$color04Bright"/g" ~/.config/xmobar/xmobarrc # bright yellow
|
||||
sed -i "s/color05Normal/"$color05Normal"/g" ~/.config/xmobar/xmobarrc # normal blue
|
||||
sed -i "s/color05Bright/"$color05Bright"/g" ~/.config/xmobar/xmobarrc # bright blue
|
||||
sed -i "s/color06Normal/"$color06Normal"/g" ~/.config/xmobar/xmobarrc # normal magenta
|
||||
sed -i "s/color06Bright/"$color06Bright"/g" ~/.config/xmobar/xmobarrc # bright magenta
|
||||
sed -i "s/color07Normal/"$color07Normal"/g" ~/.config/xmobar/xmobarrc # normal cyan
|
||||
sed -i "s/color07Bright/"$color07Bright"/g" ~/.config/xmobar/xmobarrc # bright cyan
|
||||
sed -i "s/color08Normal/"$color08Normal"/g" ~/.config/xmobar/xmobarrc # normal white
|
||||
sed -i "s/color08Bright/"$color08Bright"/g" ~/.config/xmobar/xmobarrc # bright white
|
||||
sed -i "s/colorFocus/"$colorFocus"/g" ~/.config/xmobar/xmobarrc # wm focus color
|
||||
sed -i "s/colorSecondary/"$colorSecondary"/g" ~/.config/xmobar/xmobarrc & # xmobar highlight color
|
||||
|
||||
# Launch necessary desktop applications
|
||||
# emacs --daemon &
|
||||
# xautolock -time 10 -locker "dm-tool switch-to-greeter & systemctl suspend" &
|
||||
~/.fehbg &
|
||||
twmnd &
|
||||
alttab -w 1 -t 240x160 -i 64x64 -sc 1 -bg $colorBgNormal -fg $colorFgNormal -frame $colorSecondary -inact $colorFgNormal &
|
||||
autokey-gtk &
|
||||
|
@ -104,11 +60,8 @@ nm-applet &
|
|||
GOMAXPROCS=1 syncthing --no-browser &
|
||||
rclone mount adantium-nextcloud:/ ~/Nextcloud &
|
||||
syncthing-gtk -m &
|
||||
# flatpak run com.discordapp.Discord --start-minimized &
|
||||
protonmail-bridge --no-window
|
||||
~/.local/bin/setup-external-monitor.sh &
|
||||
rm -rf ~/org &
|
||||
gnome-keyring-daemon --daemonize --login &
|
||||
gnome-keyring-daemon --start --components=secrets &
|
||||
#back4.sh 0.04 ~/Media/Backgrounds/steampunk-city.gif &
|
||||
##sleep 2 && xwinwrap -b -s -fs -st -sp -nf -ov -fdt -- mpv -wid WID --really-quiet --framedrop=vo --no-audio --panscan="1.0" --loop-file=inf --osc=no ~/Downloads/gruvbox-town-mod.gif --scale="bilinear"
|
||||
|
|
|
@ -747,7 +747,6 @@ The autostart script kills all applications I am autostarting, which prevents mu
|
|||
#
|
||||
## Kill previous instances of applications (Prevents multiple instances of the following if XMonad is restarted durin the X session)
|
||||
killall xmobar
|
||||
killall twmnd
|
||||
killall trayer
|
||||
killall nm-applet
|
||||
killall nextcloud
|
||||
|
@ -759,65 +758,14 @@ killall qjoypad
|
|||
|
||||
#+END_SRC
|
||||
|
||||
Then, a few things are set up before starting any applications, including the dpi, compositor, keyboard, and environment variables.
|
||||
Then, desktop applications are started in the background.
|
||||
#+BEGIN_SRC sh :tangle startup.sh :tangle-mode (identity #o755)
|
||||
# pre-launch configurations
|
||||
# dbus-update-activation-environment --all &
|
||||
# ~/.local/bin/setup-external-monitor.sh &
|
||||
# picom --experimental-backends &
|
||||
# Launch necessary desktop applications
|
||||
emacs --daemon &
|
||||
picom --animations --animation-window-mass 1 --animation-for-open-window zoom --animation-stiffness 200 --experimental-backends && # requires picom-pijulius
|
||||
xset r rate 350 50 &
|
||||
setxkbmap -option caps:escape &
|
||||
# betterdiscordctl --d-install flatpak install &
|
||||
|
||||
# setup necessary environment variables
|
||||
# export QT_QPA_PLATFORMTHEME="qt5ct" &
|
||||
# export GTK_THEME=$themeGTKName
|
||||
|
||||
#+END_SRC
|
||||
|
||||
Next, the color themes for various applications are set in configuration files using sed.
|
||||
#+BEGIN_SRC sh :tangle startup.sh :tangle-mode (identity #o755)
|
||||
sed -i 's/background_color=.*/background_color='$nbcolor'/' ~/.config/twmn/twmn.conf &
|
||||
sed -i 's/foreground_color=.*/foreground_color='$sbcolor'/' ~/.config/twmn/twmn.conf &
|
||||
|
||||
sed -i 's/colors: .*/colors: *'$themeAlacrittyName'/' ~/.config/alacritty/alacritty.yml &
|
||||
sed -i 's/colors: .*/colors: *'$themeAlacrittyName'/' ~/.config/alacritty/alacritty.org &
|
||||
|
||||
sed -i "s/(setq doom-theme .*/(setq doom-theme '"$themeDoomEmacsName")/" ~/.doom.d/config.el &
|
||||
sed -i "s/(setq doom-theme .*/(setq doom-theme '"$themeDoomEmacsName")/" ~/.doom.d/doom.org &
|
||||
sed -i "s/(setq doom-theme .*/(setq doom-theme '"$themeDoomEmacsName")/" ~/.doom.d/doom-pub.org &
|
||||
|
||||
cp -f ~/.config/xmobar/base-xmobarrc ~/.config/xmobar/xmobarrc &&
|
||||
sed -i "s/colorBgNormal/"$colorBgNormal"/g" ~/.config/xmobar/xmobarrc # normal background
|
||||
sed -i "s/colorBgBright/"$colorBgBright"/g" ~/.config/xmobar/xmobarrc # bright background
|
||||
sed -i "s/colorFgNormal/"$colorFgNormal"/g" ~/.config/xmobar/xmobarrc # normal foreground
|
||||
sed -i "s/color01Normal/"$color01Normal"/g" ~/.config/xmobar/xmobarrc # normal black
|
||||
sed -i "s/color01Bright/"$color01Bright"/g" ~/.config/xmobar/xmobarrc # bright black
|
||||
sed -i "s/color02Normal/"$color02Normal"/g" ~/.config/xmobar/xmobarrc # normal red
|
||||
sed -i "s/color02Bright/"$color02Bright"/g" ~/.config/xmobar/xmobarrc # bright red
|
||||
sed -i "s/color03Normal/"$color03Normal"/g" ~/.config/xmobar/xmobarrc # normal green
|
||||
sed -i "s/color03Bright/"$color03Bright"/g" ~/.config/xmobar/xmobarrc # bright green
|
||||
sed -i "s/color04Normal/"$color04Normal"/g" ~/.config/xmobar/xmobarrc # normal yellow
|
||||
sed -i "s/color04Bright/"$color04Bright"/g" ~/.config/xmobar/xmobarrc # bright yellow
|
||||
sed -i "s/color05Normal/"$color05Normal"/g" ~/.config/xmobar/xmobarrc # normal blue
|
||||
sed -i "s/color05Bright/"$color05Bright"/g" ~/.config/xmobar/xmobarrc # bright blue
|
||||
sed -i "s/color06Normal/"$color06Normal"/g" ~/.config/xmobar/xmobarrc # normal magenta
|
||||
sed -i "s/color06Bright/"$color06Bright"/g" ~/.config/xmobar/xmobarrc # bright magenta
|
||||
sed -i "s/color07Normal/"$color07Normal"/g" ~/.config/xmobar/xmobarrc # normal cyan
|
||||
sed -i "s/color07Bright/"$color07Bright"/g" ~/.config/xmobar/xmobarrc # bright cyan
|
||||
sed -i "s/color08Normal/"$color08Normal"/g" ~/.config/xmobar/xmobarrc # normal white
|
||||
sed -i "s/color08Bright/"$color08Bright"/g" ~/.config/xmobar/xmobarrc # bright white
|
||||
sed -i "s/colorFocus/"$colorFocus"/g" ~/.config/xmobar/xmobarrc # wm focus color
|
||||
sed -i "s/colorSecondary/"$colorSecondary"/g" ~/.config/xmobar/xmobarrc & # xmobar highlight color
|
||||
|
||||
#+END_SRC
|
||||
|
||||
Lastly, desktop applications are started in the background.
|
||||
#+BEGIN_SRC sh :tangle startup.sh :tangle-mode (identity #o755)
|
||||
# Launch necessary desktop applications
|
||||
# emacs --daemon &
|
||||
# xautolock -time 10 -locker "dm-tool switch-to-greeter & systemctl suspend" &
|
||||
~/.fehbg &
|
||||
twmnd &
|
||||
alttab -w 1 -t 240x160 -i 64x64 -sc 1 -bg $colorBgNormal -fg $colorFgNormal -frame $colorSecondary -inact $colorFgNormal &
|
||||
autokey-gtk &
|
||||
|
@ -826,14 +774,11 @@ nm-applet &
|
|||
GOMAXPROCS=1 syncthing --no-browser &
|
||||
rclone mount adantium-nextcloud:/ ~/Nextcloud &
|
||||
syncthing-gtk -m &
|
||||
# flatpak run com.discordapp.Discord --start-minimized &
|
||||
protonmail-bridge --no-window
|
||||
~/.local/bin/setup-external-monitor.sh &
|
||||
rm -rf ~/org &
|
||||
gnome-keyring-daemon --daemonize --login &
|
||||
gnome-keyring-daemon --start --components=secrets &
|
||||
#back4.sh 0.04 ~/Media/Backgrounds/steampunk-city.gif &
|
||||
##sleep 2 && xwinwrap -b -s -fs -st -sp -nf -ov -fdt -- mpv -wid WID --really-quiet --framedrop=vo --no-audio --panscan="1.0" --loop-file=inf --osc=no ~/Downloads/gruvbox-town-mod.gif --scale="bilinear"
|
||||
#+END_SRC
|
||||
*** New Xmobar Setup
|
||||
#+BEGIN_SRC haskell :tangle xmonad.hs
|
||||
|
|
Loading…
Reference in a new issue