mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 11:30:23 +10:00
Adding leftwm with xmobar.
This commit is contained in:
42
.config/leftwm/themes/basic_xmobar/up
Executable file
42
.config/leftwm/themes/basic_xmobar/up
Executable file
@@ -0,0 +1,42 @@
|
||||
#!/usr/bin/env bash
|
||||
export SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||
|
||||
|
||||
#down the last running theme
|
||||
if [ -f "/tmp/leftwm-theme-down" ]; then
|
||||
/tmp/leftwm-theme-down
|
||||
rm /tmp/leftwm-theme-down
|
||||
fi
|
||||
ln -s $SCRIPTPATH/down /tmp/leftwm-theme-down
|
||||
|
||||
|
||||
#boot compton or picom if it exists
|
||||
killall conky
|
||||
killall trayer
|
||||
lxsession &
|
||||
picom &
|
||||
nm-applet &
|
||||
volumeicon &
|
||||
/usr/bin/emacs --daemon &
|
||||
|
||||
sleep 2 && conky -c $HOME/.config/conky/xmonad/doom-one-01.conkyrc
|
||||
sleep 2 && trayer --edge top --align right --widthtype request --padding 6 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x282c34 --height 22
|
||||
|
||||
#set the theme.ron config
|
||||
leftwm-command "LoadTheme $SCRIPTPATH/theme.ron"
|
||||
|
||||
|
||||
# SET WALLPAPER
|
||||
# Uncomment only ONE of the following FOUR lines, depending on which wallpaper setter you use.
|
||||
xargs xwallpaper --stretch < ~/.cache/wall
|
||||
# ~/.fehbg &" -- set last saved feh wallpaper
|
||||
# feh --randomize --bg-fill /usr/share/backgrounds/dtos-backgrounds/*" -- feh set random wallpaper
|
||||
# nitrogen --restore &" -- if you prefer nitrogen to feh
|
||||
|
||||
index=0
|
||||
leftwm-state -q -n -t $SCRIPTPATH/sizes.liquid | sed -r '/^\s*$/d' | while read size
|
||||
do
|
||||
leftwm-state -w $index -t $SCRIPTPATH/template.liquid | xmobar -p "$size" $SCRIPTPATH/xmobar-config.hs --alpha=230 &
|
||||
let index=index+1
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user