Add Firestarter, my custom DE script suite
This commit is contained in:
parent
51be586f1d
commit
a1fe1323bb
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -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
|
||||||
|
3
firestarter/.config/firestarter/akonadi
Executable file
3
firestarter/.config/firestarter/akonadi
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#.fsdefaults
|
||||||
|
command -v akonadictl
|
||||||
|
akonadictl start
|
3
firestarter/.config/firestarter/audiod
Normal file
3
firestarter/.config/firestarter/audiod
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#.fsdefaults
|
||||||
|
command -v pulseaudio
|
||||||
|
pulseaudio
|
13
firestarter/.config/firestarter/bar
Executable file
13
firestarter/.config/firestarter/bar
Executable 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
|
3
firestarter/.config/firestarter/cloud
Executable file
3
firestarter/.config/firestarter/cloud
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#.fsdefaults
|
||||||
|
command -v nextcloud && [ -d "$HOME/.config/Nextcloud" ]
|
||||||
|
nextcloud --background
|
11
firestarter/.config/firestarter/compositor
Executable file
11
firestarter/.config/firestarter/compositor
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#.fsdefaults
|
||||||
|
[ -z "$DISPLAY" ]
|
||||||
|
:
|
||||||
|
command -v unagi
|
||||||
|
unagi
|
||||||
|
command -v picom
|
||||||
|
picom
|
||||||
|
command -v compton
|
||||||
|
compton
|
||||||
|
command -v xcompmgr
|
||||||
|
xcompmgr
|
11
firestarter/.config/firestarter/conky
Normal file
11
firestarter/.config/firestarter/conky
Normal 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
|
3
firestarter/.config/firestarter/hkd
Executable file
3
firestarter/.config/firestarter/hkd
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#.fsdefaults
|
||||||
|
command -v sxhkd
|
||||||
|
sxhkd
|
7
firestarter/.config/firestarter/im
Executable file
7
firestarter/.config/firestarter/im
Executable 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
|
5
firestarter/.config/firestarter/mpd
Executable file
5
firestarter/.config/firestarter/mpd
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#.fsdefaults
|
||||||
|
command -v mopidy
|
||||||
|
mopidy
|
||||||
|
command -v mpd
|
||||||
|
mpd
|
3
firestarter/.config/firestarter/networkd
Executable file
3
firestarter/.config/firestarter/networkd
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#.fsdefaults
|
||||||
|
command -v nm-applet
|
||||||
|
nm-applet
|
9
firestarter/.config/firestarter/notifyd
Executable file
9
firestarter/.config/firestarter/notifyd
Executable 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
|
37
firestarter/.config/firestarter/polkitd
Executable file
37
firestarter/.config/firestarter/polkitd
Executable 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
|
15
firestarter/.config/firestarter/powerd
Executable file
15
firestarter/.config/firestarter/powerd
Executable 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
|
5
firestarter/.config/firestarter/redshift
Executable file
5
firestarter/.config/firestarter/redshift
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#.fsdefaults
|
||||||
|
command -v redshift-gtk
|
||||||
|
redshift-gtk
|
||||||
|
command -v redshift
|
||||||
|
redshift
|
13
firestarter/.config/firestarter/settingsd
Normal file
13
firestarter/.config/firestarter/settingsd
Normal 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
|
3
firestarter/.config/firestarter/steam
Executable file
3
firestarter/.config/firestarter/steam
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#.fsdefaults
|
||||||
|
command -v steam && [ -e ~/.steam ]
|
||||||
|
steam -nochatui -nofriendsui -silent
|
5
firestarter/.config/firestarter/syncthing
Executable file
5
firestarter/.config/firestarter/syncthing
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#.fsdefaults
|
||||||
|
command -v syncthing-gtk && [ -d "$HOME/.config/syncthing" ]
|
||||||
|
syncthing-gtk
|
||||||
|
command -v syncthing && [ -d "$HOME/.config/syncthing" ]
|
||||||
|
syncthing
|
3
firestarter/.config/firestarter/telegram
Executable file
3
firestarter/.config/firestarter/telegram
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#.fsdefaults
|
||||||
|
command -v telegram-desktop && [ -d "$HOME/.local/share/TelegramDesktop" ]
|
||||||
|
telegram-desktop -startintray
|
3
firestarter/.config/firestarter/wallet
Executable file
3
firestarter/.config/firestarter/wallet
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#.fsdefaults
|
||||||
|
command -v kwalletd5
|
||||||
|
kwalletd5
|
11
firestarter/.config/firestarter/wallpaper
Executable file
11
firestarter/.config/firestarter/wallpaper
Executable 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"
|
7
firestarter/.config/firestarter/wm
Executable file
7
firestarter/.config/firestarter/wm
Executable 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
|
1
firestarter/.firestarter
Submodule
1
firestarter/.firestarter
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit bcf9c80efb34b1573bf9e8f68a46a31f074dbf80
|
47
firestarter/.xinitrc
Executable file
47
firestarter/.xinitrc
Executable 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
47
firestarter/.xsessionrc
Executable 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
|
Loading…
Reference in New Issue
Block a user