Add Firestarter, my custom DE script suite

This commit is contained in:
Salt 2021-01-19 01:32:29 -06:00
parent 51be586f1d
commit a1fe1323bb
25 changed files with 271 additions and 0 deletions

3
.gitmodules vendored
View File

@ -34,3 +34,6 @@
[submodule "vim/.vim/bundle/vim-ansible-yaml"] [submodule "vim/.vim/bundle/vim-ansible-yaml"]
path = vim/.vim/bundle/vim-ansible-yaml path = vim/.vim/bundle/vim-ansible-yaml
url = https://github.com/chase/vim-ansible-yaml url = https://github.com/chase/vim-ansible-yaml
[submodule "firestarter/.firestarter"]
path = firestarter/.firestarter
url = git@git.desu.ltd:salt/firestarter

View File

@ -0,0 +1,3 @@
#.fsdefaults
command -v akonadictl
akonadictl start

View File

@ -0,0 +1,3 @@
#.fsdefaults
command -v pulseaudio
pulseaudio

View File

@ -0,0 +1,13 @@
#.fsdefaults
command -v tint2
tint2
command -v polybar && [ -r "$HOME/.config/polybar/launch.sh" ]
sleep 3 && "$HOME/.config/polybar/launch.sh"
command -v lxpanel
lxpanel
command -v lxqt-panel
lxqt-panel
command -v mate-panel
mate-panel
command -v xfce4-panel
xfce4-panel

View File

@ -0,0 +1,3 @@
#.fsdefaults
command -v nextcloud && [ -d "$HOME/.config/Nextcloud" ]
nextcloud --background

View File

@ -0,0 +1,11 @@
#.fsdefaults
[ -z "$DISPLAY" ]
:
command -v unagi
unagi
command -v picom
picom
command -v compton
compton
command -v xcompmgr
xcompmgr

View File

@ -0,0 +1,11 @@
#.fsdefaults
[ -z "$DISPLAY" ]
:
# Note: the dumb sleep hack is because Conky crashes with window_type override if the WM hasn't loaded yet
# This gives the WM ample time to load up
[ "$THEME" == "light" ]
:
command -v conky && [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/conky/conky-clock.conf" ] && [[ "$HOSTNAME" == "lap"* ]]
sleep 3 && conky -c "${XDG_CONFIG_HOME:-$HOME/.config}/conky/conky-clock.conf"
command -v conky && [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/conky/conky.conf" ]
sleep 3 && conky

View File

@ -0,0 +1,3 @@
#.fsdefaults
command -v sxhkd
sxhkd

View File

@ -0,0 +1,7 @@
#.fsdefaults
[ -z "$DISPLAY" ]
:
command -v uim-toolbar-gtk3-systray
uim-toolbar-gtk3-systray
command -v ibus-daemon
ibus-daemon -rx

View File

@ -0,0 +1,5 @@
#.fsdefaults
command -v mopidy
mopidy
command -v mpd
mpd

View File

@ -0,0 +1,3 @@
#.fsdefaults
command -v nm-applet
nm-applet

View File

@ -0,0 +1,9 @@
#.fsdefaults
[ -z "$DISPLAY" ]
:
command -v dunst && [ "$THEME" == "light" ]
dunst -conf ~/.config/dunst/dunstrc-light
command -v dunst
dunst
command -v lxqt-notificationd
notificationd

View File

@ -0,0 +1,37 @@
#.fsdefaults
command -v lxqt-policykit-agent
lxqt-policykit-agent
command -v lxpolkit
lxpolkit
command -v mate-polkit
mate-polkit
command -v polkit-efl-authentication-agent-1
polkit-efl-authentication-agent-1
[ -x "/usr/lib/ts-polkitagent" ]
/usr/lib/ts-polkitagent
[ -x "/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1" ]
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
[ -x "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" ]
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
# Debian locations
# On generation time, your architecture is filled in here
[ -x "/usr/lib/x86_64-linux-gnu/polkit-mate/polkit-mate-authentication-agent-1" ]
"/usr/lib/x86_64-linux-gnu/polkit-mate/polkit-mate-authentication-agent-1"
[ -x "/usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1" ]
"/usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1"
# Arch locations
[ -x "/usr/lib/mate-polkit/polkit-mate-authentication-agent-1" ]
/usr/lib/mate-polkit/polkit-mate-authentication-agent-1
[ -x "/usr/lib/polkit-kde-authentication-agent-1" ]
/usr/lib/polkit-kde-authentication-agent-1
# Fedora locations
[ -x "/usr/libexec/xfce-polkit" ]
/usr/libexec/xfce-polkit
[ -x "/usr/libexec/lxqt-policykit-agent" ]
/usr/libexec/lxqt-policykit-agent
[ -x "/usr/libexec/polkit-mate-authentication-agent-1" ]
/usr/libexec/polkit-mate-authentication-agent-1
[ -x "/usr/libexec/kf5/polkit-kde-authentication-agent-1" ]
/usr/libexec/kf5/polkit-kde-authentication-agent-1
[ -x "/usr/libexec/polkit-gnome-authentication-agent-1" ]
/usr/libexec/polkit-gnome-authentication-agent-1

View File

@ -0,0 +1,15 @@
#.fsdefaults
command -v batterymon
batterymon
command -v cbatticon
cbatticon
command -v lxqt-powermangement
lxqt-powermanagement
command -v xfce4-power-manager
xfce4-power-manager
command -v mate-power-manager
mate-power-manager
[ -x "/usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdevil" ]
/usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdevil
command -v gnome-power-manager
gnome-power-manager

View File

@ -0,0 +1,5 @@
#.fsdefaults
command -v redshift-gtk
redshift-gtk
command -v redshift
redshift

View File

@ -0,0 +1,13 @@
#.fsdefaults
command -v xsettingsd
xsettingsd
command -v xsettings-kde
xsettingskde
command -v lxsettings-daemon
lxsettings-daemon
command -v xfsettingsd
xfsettingsd
command -v mate-settings-daemon
mate-settings-daemon
command -v gnome-settings-daemon
gnome-settings-daemon

View File

@ -0,0 +1,3 @@
#.fsdefaults
command -v steam && [ -e ~/.steam ]
steam -nochatui -nofriendsui -silent

View File

@ -0,0 +1,5 @@
#.fsdefaults
command -v syncthing-gtk && [ -d "$HOME/.config/syncthing" ]
syncthing-gtk
command -v syncthing && [ -d "$HOME/.config/syncthing" ]
syncthing

View File

@ -0,0 +1,3 @@
#.fsdefaults
command -v telegram-desktop && [ -d "$HOME/.local/share/TelegramDesktop" ]
telegram-desktop -startintray

View File

@ -0,0 +1,3 @@
#.fsdefaults
command -v kwalletd5
kwalletd5

View File

@ -0,0 +1,11 @@
#.fsdefaults
[ -z "$DISPLAY" ]
:
command -v nitrogen && [ -r "$HOME/.config/nitrogen/bg-saved.cfg" ]
nitrogen --restore
command -v feh && [ -r "$HOME/.fehbg" ]
~/.fehbg
command -v hsetroot && [ -r ~/.config/firestarter/tile.png ] && [ "$(hostname)" == "dsk-cstm-0" ]
hsetroot -tile "$HOME/.config/firestarter/tile.png"
command -v hsetroot && [ -r ~/.config/firestarter/tile.png ] && [ -r ~/.config/firestarter/center.png ]
hsetroot -tile "$HOME/.config/firestarter/tile.png" -center "$HOME/.config/firestarter/center.png"

View File

@ -0,0 +1,7 @@
#.fsdefaults
[ -z "$DISPLAY" ]
:
command -v ksmserver && ksmserver -h | grep -ie '-w' && command -v bspwm
ksmserver -w bspwm
command -v bspwm
bspwm

@ -0,0 +1 @@
Subproject commit bcf9c80efb34b1573bf9e8f68a46a31f074dbf80

47
firestarter/.xinitrc Executable file
View File

@ -0,0 +1,47 @@
#!/bin/bash
# Straight up bail of we have a special file
if [ -f "$HOME/.skipxinit" ]; then
return
fi
# Nest protection
if [ -n "$FIRESTARTER" ]; then
echo "Firestarter is already running in this session"
exit 50
fi
# Find our terminal
for term in mate-terminal lxterminal xfce4-terminal konsole urxvt xterm; do
if command -v "$term" > /dev/null 2>&1; then
export TERMINAL="$term"
break
fi
done
# Monitor setup
case $(hostname) in
vm-*)
xrandr --output Virtual-1 --mode 1920x1080 --rate 60 --primary
;;
dsk-cstm-0*)
xrandr --output DisplayPort-1 --mode 2560x1440 --rate 144 --primary
xrandr --output HDMI-A-0 --mode 1920x1080 --rate 60 --pos 2560x360
;;
esac
# Wallpaper generation because why not
#if [ -x "$HOME/.wpgen/wpgen" ]; then
# resolutions=($(xrandr -q | grep '*' | awk '{print $1}'))
# for res in ${resolutions[@]}; do
# "$HOME/.wpgen/wpgen" "$res"
# done
#fi
# Session execution
if [ -x "$HOME/.config/conky/gen.sh" ]; then
"$HOME/.config/conky/gen.sh"
fi
if [ -x "$HOME/.firestarter/firestarter" ]; then
export FS_DIEONWM=true
export STARTUP="$HOME/.firestarter/firestarter"
fi
# We'd rather let the system-wide Xsession handle this
if ! [ -f "/etc/X11/Xsession.d/99x11-common_start" ]; then
exec $STARTUP
fi

47
firestarter/.xsessionrc Executable file
View File

@ -0,0 +1,47 @@
#!/bin/bash
# Straight up bail of we have a special file
if [ -f "$HOME/.skipxinit" ]; then
return
fi
# Nest protection
if [ -n "$FIRESTARTER" ]; then
echo "Firestarter is already running in this session"
exit 50
fi
# Find our terminal
for term in mate-terminal lxterminal xfce4-terminal konsole urxvt xterm; do
if command -v "$term" > /dev/null 2>&1; then
export TERMINAL="$term"
break
fi
done
# Monitor setup
case $(hostname) in
vm-*)
xrandr --output Virtual-1 --mode 1920x1080 --rate 60 --primary
;;
dsk-cstm-0*)
xrandr --output DisplayPort-1 --mode 2560x1440 --rate 144 --primary
xrandr --output HDMI-A-0 --mode 1920x1080 --rate 60 --pos 2560x360
;;
esac
# Wallpaper generation because why not
#if [ -x "$HOME/.wpgen/wpgen" ]; then
# resolutions=($(xrandr -q | grep '*' | awk '{print $1}'))
# for res in ${resolutions[@]}; do
# "$HOME/.wpgen/wpgen" "$res"
# done
#fi
# Session execution
if [ -x "$HOME/.config/conky/gen.sh" ]; then
"$HOME/.config/conky/gen.sh"
fi
if [ -x "$HOME/.firestarter/firestarter" ]; then
export FS_DIEONWM=true
export STARTUP="$HOME/.firestarter/firestarter"
fi
# We'd rather let the system-wide Xsession handle this
if ! [ -f "/etc/X11/Xsession.d/99x11-common_start" ]; then
exec $STARTUP
fi