mirror of
https://github.com/xsghetti/HyprCrux.git
synced 2025-07-03 13:50:38 -04:00
91 lines
2 KiB
Bash
Executable file
91 lines
2 KiB
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
ScrDir=`dirname "$(realpath "$0")"`
|
|
source $ScrDir/globalcontrol.sh
|
|
WalDir="${XDG_CONFIG_HOME:-$HOME/.config}/swww"
|
|
RofDir="${XDG_CONFIG_HOME:-$HOME/.config}/rofi"
|
|
|
|
roficn=0
|
|
wlogcn=1
|
|
|
|
while read loop_theme
|
|
do
|
|
themeName=`echo $loop_theme | cut -d '|' -f 2`
|
|
$ScrDir/themeswitch.sh -s $themeName &> /dev/null
|
|
sleep 0.2
|
|
|
|
hyprctl dispatch workspace empty
|
|
dolphin &> /dev/null &
|
|
sleep 0.21
|
|
kitty &> /dev/null &
|
|
sleep 1.4
|
|
hyprctl dispatch workspace empty
|
|
|
|
#walln=`ls -l $WalDir/$themeName | wc -l`
|
|
for (( i=1 ; i<3 ; i++ ))
|
|
do
|
|
# swww
|
|
sleep 0.2
|
|
$ScrDir/swwwallpaper.sh -n &> /dev/null
|
|
|
|
# rofiselect
|
|
$ScrDir/rofiselect.sh &> /dev/null &
|
|
sleep 0.7
|
|
pkill -x rofi
|
|
|
|
# rofi
|
|
if [ $roficn -lt 8 ] ; then
|
|
roficn=$(( roficn + 1 ))
|
|
else
|
|
roficn=1
|
|
fi
|
|
cp $RofDir/styles/style_$roficn.rasi $RofDir/config.rasi
|
|
$ScrDir/rofilaunch.sh &> /dev/null &
|
|
sleep 0.7
|
|
pkill -x rofi
|
|
|
|
# themeselect
|
|
$ScrDir/themeselect.sh &> /dev/null &
|
|
sleep 0.7
|
|
pkill -x rofi
|
|
|
|
# wlogout
|
|
if [ $wlogcn -eq 1 ] ; then
|
|
wlogcn=2
|
|
else
|
|
wlogcn=1
|
|
fi
|
|
$ScrDir/logoutlaunch.sh $wlogcn &> /dev/null &
|
|
sleep 0.7
|
|
pkill -x wlogout
|
|
|
|
# waybar
|
|
$ScrDir/wbarconfgen.sh n &> /dev/null
|
|
|
|
# quickapps
|
|
$ScrDir/quickapps.sh kitty firefox spotify code dolphin &> /dev/null &
|
|
sleep 0.7
|
|
pkill -x rofi
|
|
|
|
# cliphist
|
|
$ScrDir/cliphist.sh w &> /dev/null &
|
|
sleep 0.7
|
|
pkill -x rofi
|
|
|
|
# wallselect
|
|
$ScrDir/swwwallselect.sh &> /dev/null &
|
|
sleep 0.7
|
|
pkill -x rofi
|
|
|
|
# wallbash
|
|
$ScrDir/wallbashtoggle.sh
|
|
sleep 0.2
|
|
|
|
# volumecontrol
|
|
for (( i=1 ; i<=6 ; i++ )) ; do
|
|
[[ i -gt 3 ]] && vol="d" || vol="i"
|
|
$ScrDir/volumecontrol.sh -o $vol
|
|
done
|
|
done
|
|
done < "$ThemeCtl"
|
|
|