Updates
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
#!/bin/bash
|
||||
# _ _ _ _
|
||||
# | |__ __ _ _ __ _____ _(_) |_ ___| |__ ___ _ __
|
||||
# | '_ \ / _` | '__/ __\ \ /\ / / | __/ __| '_ \ / _ \ '__|
|
||||
# | |_) | (_| | | \__ \\ V V /| | || (__| | | | __/ |
|
||||
# |_.__/ \__,_|_| |___/ \_/\_/ |_|\__\___|_| |_|\___|_|
|
||||
#
|
||||
# by Stephan Raabe (2023)
|
||||
# -----------------------------------------------------
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Load status bar information
|
||||
# -----------------------------------------------------
|
||||
bar=$(cat ~/.cache/.qtile_bar_x11.sh)
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Switch status bar information
|
||||
# -----------------------------------------------------
|
||||
if [ $bar == "qtile" ]; then
|
||||
echo "Change to Polybar"
|
||||
echo "polybar" > ~/.cache/.qtile_bar_x11.sh
|
||||
notify-send "Status Bar is changing..." "to Polybar"
|
||||
else
|
||||
echo "Change to Qtile Bar"
|
||||
echo "qtile" > ~/.cache/.qtile_bar_x11.sh
|
||||
notify-send "Status Bar is changing..." "to Qtile Status Bar"
|
||||
fi
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Load status bar
|
||||
# -----------------------------------------------------
|
||||
~/dotfiles/qtile/scripts/x11/loadbar.sh
|
||||
@@ -8,36 +8,4 @@
|
||||
# by Stephan Raabe (2023)
|
||||
# -----------------------------------------------------
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Check if information about the bar exists in .cache
|
||||
# If not create it
|
||||
# -----------------------------------------------------
|
||||
if [ ! -f ~/.cache/.qtile_bar_x11.sh ]; then
|
||||
touch ~/.cache/.qtile_bar_x11.sh
|
||||
echo "qtile" > ~/.cache/.qtile_bar_x11.sh
|
||||
echo ".qtile_bar_x11.sh created"
|
||||
fi
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Load status bar information
|
||||
# -----------------------------------------------------
|
||||
bar=$(cat ~/.cache/.qtile_bar_x11.sh)
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Load status bar based on loaded information
|
||||
# -----------------------------------------------------
|
||||
if [ $bar == "qtile" ]; then
|
||||
killall polybar
|
||||
sleep 0.2
|
||||
qtile cmd-obj -o cmd -f reload_config
|
||||
else
|
||||
killall polybar
|
||||
sleep 0.2
|
||||
qtile cmd-obj -o cmd -f reload_config
|
||||
sleep 0.2
|
||||
source "$HOME/.cache/wal/colors.sh"
|
||||
~/dotfiles/polybar/launch.sh &
|
||||
sleep 0.2
|
||||
qtile cmd-obj -o cmd -f reload_config
|
||||
fi
|
||||
|
||||
echo "Loading Qtile status bar..."
|
||||
Reference in New Issue
Block a user