mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-07 17:27:33 +08:00
massive config and scripts update
Former-commit-id: 46c2bf7d26
Former-commit-id: ec0b4e689f3f8e97d837848929a1a6a9e45f779b
Former-commit-id: 19f055447f5fd666a270a51cf98b05d70716e826
This commit is contained in:
parent
77d2c4adfe
commit
dd677bde98
856 changed files with 134316 additions and 1695 deletions
16
Scripts/GPUtemperature.sh
Executable file
16
Scripts/GPUtemperature.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
TEMP="$(nvidia-settings -q all | grep "Attribute 'ThermalSensorReading'" -m 1 | awk '{print $4}')"
|
||||
|
||||
# With icon
|
||||
# echo " $TEMP"
|
||||
|
||||
# Just text
|
||||
if [ ${#TEMP} -eq "0" ]; then
|
||||
# Print CPU temp if nvidia card is disabled
|
||||
~/Scripts/temperature.sh
|
||||
else
|
||||
echo " ${TEMP%?}°C"
|
||||
# echo "HEAT ${TEMP%?}°C"
|
||||
fi
|
||||
#echo "gpu ${TEMP%?}°C"
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/bash
|
||||
URL='https://www.accuweather.com/en/us/buffalo-ny/14202/weather-forecast/349726'
|
||||
#TEMP="$(wget -q -O- "$URL" | awk -F\' '/acm_RecentLocationsCarousel\.push/{print $12"°F" }'| head -1)"
|
||||
TEMP="$(wget -q -O- "$URL" | grep temp_f | awk '{print $3}' | cut -d "'" -f 2)"
|
||||
|
||||
echo " $TEMP°F"
|
||||
|
|
@ -9,27 +9,27 @@ STATE="$(echo $INFO | grep "state" | awk '{print $2}')"
|
|||
POWER="$(echo $INFO | grep "percentage" | awk '{print $2}' | head -c -2)"
|
||||
|
||||
# With icons
|
||||
# if [[ "$STATE" = "discharging" ]]; then
|
||||
# if [ "$POWER" -ge "85" ]; then
|
||||
# echo " $POWER%"
|
||||
# elif [ "$POWER" -ge "60" ]; then
|
||||
# echo " $POWER%"
|
||||
# elif [ "$POWER" -ge "35" ]; then
|
||||
# echo " $POWER%"
|
||||
# elif [ "$POWER" -ge "10" ]; then
|
||||
# echo " $POWER%"
|
||||
# else
|
||||
# echo " $POWER%"
|
||||
# fi
|
||||
# else
|
||||
# # State = fully charged or charging
|
||||
# echo " $POWER%"
|
||||
# fi
|
||||
|
||||
# Without icons
|
||||
if [[ "$STATE" = "discharging" ]]; then
|
||||
echo "bat* $POWER%"
|
||||
if [ "$POWER" -ge "85" ]; then
|
||||
echo " $POWER%"
|
||||
elif [ "$POWER" -ge "60" ]; then
|
||||
echo " $POWER%"
|
||||
elif [ "$POWER" -ge "35" ]; then
|
||||
echo " $POWER%"
|
||||
elif [ "$POWER" -ge "10" ]; then
|
||||
echo " $POWER%"
|
||||
else
|
||||
echo " $POWER%"
|
||||
fi
|
||||
else
|
||||
# State = fully charged or charging
|
||||
echo "bat $POWER%"
|
||||
fi
|
||||
echo " $POWER%"
|
||||
fi
|
||||
|
||||
# Without icons
|
||||
# if [[ "$STATE" = "discharging" ]]; then
|
||||
# echo "BAT* $POWER%"
|
||||
# else
|
||||
# # State = fully charged or charging
|
||||
# echo "BAT $POWER%"
|
||||
# fi
|
||||
|
|
|
|||
3
Scripts/capture_area.sh
Executable file
3
Scripts/capture_area.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
notify-send 'Select area to capture.' --icon=/home/elena/.icons/oomox-wally-flat/apps/scalable/gnome-screenshot.svg --urgency low
|
||||
scrot -s '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/Pictures/Screenshots/';
|
||||
notify-send "Screenshot taken." --icon=/home/elena/.icons/oomox-wally-flat/apps/scalable/gnome-screenshot.svg --urgency low
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
#
|
||||
#
|
||||
CPU="$[100-$(vmstat 1 2|tail -1|awk '{printf "%d", $15}')]"
|
||||
# GOVERNOR="$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)"
|
||||
|
||||
|
|
@ -12,16 +12,17 @@ CPU="$[100-$(vmstat 1 2|tail -1|awk '{printf "%d", $15}')]"
|
|||
|
||||
# Lazy whitespace padding
|
||||
# With icon
|
||||
# if [ "$CPU" -ge "10" ]; then
|
||||
# echo " $CPU%"
|
||||
# else
|
||||
# echo " $CPU%"
|
||||
# fi
|
||||
|
||||
# Just text
|
||||
if [ "$CPU" -ge "10" ]; then
|
||||
echo "cpu $CPU%"
|
||||
echo " $CPU%"
|
||||
else
|
||||
echo "cpu $CPU%"
|
||||
echo " $CPU%"
|
||||
fi
|
||||
|
||||
# # Just text
|
||||
# if [ "$CPU" -ge "10" ]; then
|
||||
# # echo "cpu $CPU%"
|
||||
# echo "CPU $CPU%"
|
||||
# else
|
||||
# echo "CPU $CPU%"
|
||||
# fi
|
||||
|
||||
|
|
|
|||
1
Scripts/dunst_restart
Executable file
1
Scripts/dunst_restart
Executable file
|
|
@ -0,0 +1 @@
|
|||
killall dunst && notify-send 'Hello world!' 'Dunst has restarted.' --icon=/home/elena/.icons/oomox-wally-flat/apps/scalable/gtk-info.svg
|
||||
2
Scripts/fetch_ratatat
Executable file
2
Scripts/fetch_ratatat
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
# needs work
|
||||
neofetch --backend w3m ~/Pictures/Wallpapers/ratatatGradientCon.jpg --crop_offset northeast --crop_mode fill --size 200px --disable gpu cpu memory icons theme wm model
|
||||
1
Scripts/flux
Executable file
1
Scripts/flux
Executable file
|
|
@ -0,0 +1 @@
|
|||
redshift -O 3000
|
||||
|
|
@ -1,3 +1,9 @@
|
|||
# rofi -show combi -combi-modi "window,run" -lines 8 -width 100 -padding 150 -font "mononoki Nerd Font Regular 35" -separator-style "none"
|
||||
# rofi -show combi -combi-modi "window,run" -lines 10 -width 100 -padding 150 -font "iosevka Nerd Font Regular 30" -separator-style "none"
|
||||
|
||||
rofi -show combi -combi-modi "window,run" -lines 10 -width 50 -padding 80 -font "proggycleanttce Nerd Font Regular 12" -separator-style "none" -no-show-match
|
||||
# rofi -show combi -combi-modi "window,run" -lines 15 -width 50 -padding 20 -font "proggycleanttce Nerd Font Regular 12" -separator-style "none" -no-show-match
|
||||
|
||||
rofi -show combi -combi-modi "window,run" -lines 15 -width 60 -padding 20 -font "iosevka Nerd Font Bold 12" -separator-style "none" -no-show-match
|
||||
|
||||
# rofi -show combi -combi-modi "window,run" -lines 15 -width 100 -padding 300 -font "tewi 11" -separator-style "none" -no-show-match
|
||||
|
||||
# rofi -show combi -combi-modi "window,run" -lines 15 -width 50 -padding 20 -font "pxplus ibm ega8 12" -separator-style "none" -no-show-match
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
gksu "cpufreq-set -g powersave"
|
||||
|
|
@ -1 +0,0 @@
|
|||
gksu "cpufreq-set -g performance"
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
#!/bin/bash
|
||||
#XSET_OUTPUT="$(xset -q)"
|
||||
#KEYS="$(echo $XSET_OUTPUT | grep Caps | awk '{print $4 " " $8;}')"
|
||||
#CAPS="$(echo $KEYS | awk '{if ($1 == "off") {print ""} else {print ""}}')"
|
||||
#NUM="$(echo $KEYS | awk '{if ($2 == "off") {print ""} else {print ""}}')"
|
||||
#echo " "$CAPS $NUM $LANG
|
||||
|
||||
# if [ $LANG_CODE -gt "1000" ]; then
|
||||
# # greek is around 1000-1003, and i only have gr and en so this is enough
|
||||
# LANG="gr"
|
||||
# else
|
||||
# # english
|
||||
# LANG="en"
|
||||
# fi
|
||||
|
||||
#LANG_CODE="$(xset -q | grep LED | awk '{print $10}')"
|
||||
LANG="$(xset -q | grep LED | awk '{if ($10 >= 1000) {print "gr"} else {print "en"}}')"
|
||||
|
||||
echo " $LANG "
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
# C N
|
||||
# both off
|
||||
# num on
|
||||
# caps on
|
||||
# both on
|
||||
|
|
@ -5,11 +5,17 @@ MPDSTATE="$(mpc | head -2 | tail -1 | awk '{print $1}')"
|
|||
|
||||
if [[ "$MPDSTATE" != "[playing]" ]]; then
|
||||
# echo " ·| "
|
||||
echo ""
|
||||
# echo ""
|
||||
# echo "||"
|
||||
# echo ""
|
||||
echo ""
|
||||
else
|
||||
# echo " ·> "
|
||||
echo ""
|
||||
# echo ""
|
||||
# echo ""
|
||||
# echo ">>"
|
||||
# echo ""
|
||||
echo ""
|
||||
SONG="$(mpc | head -1)"
|
||||
notify-send "Now playing:" "$SONG" -i ~/.icons/oomox-wally-flat/actions/scalable/player_play.svg --replace-file /tmp/mpd_notification_id
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -42,9 +42,9 @@ do
|
|||
i=1
|
||||
|
||||
# Uncomment this to enable notifying every time the song changes
|
||||
# if [ ${#INPUT} -ne "0" ]; then
|
||||
# notify-send " Now playing:" "$INPUT"
|
||||
# fi
|
||||
if [ ${#INPUT} -ne "0" ]; then
|
||||
notify-send "Now playing:" "$INPUT" -i ~/.icons/oomox-wally-flat/actions/scalable/player_play.svg
|
||||
fi
|
||||
fi
|
||||
|
||||
# Save old input for the next check
|
||||
|
|
@ -60,15 +60,18 @@ do
|
|||
#if [ ${#YOUTUBE} -eq "0" ] && [ ${#NCMPCPP} -eq "0" ]; then
|
||||
if [ ${#YOUTUBE} -eq "0" ] && [[ "$MPDSTATE" != "[playing]" ]]; then
|
||||
#echo " "
|
||||
echo " "
|
||||
#echo " "
|
||||
#echo " "
|
||||
#echo " "
|
||||
#echo " "
|
||||
echo " ·| "
|
||||
else
|
||||
if [[ "$MPDSTATE" != "[playing]" ]]; then
|
||||
echo " "
|
||||
echo " ·@ "
|
||||
#echo " "
|
||||
else
|
||||
echo " "
|
||||
echo " ·> "
|
||||
#echo " "
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
6
Scripts/nvidia_mem.sh
Executable file
6
Scripts/nvidia_mem.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
# Prints used GPU global memory
|
||||
# Work in progress
|
||||
while :
|
||||
do
|
||||
nvidia-settings -q all | grep -i "attribute 'useddedi"
|
||||
done
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
gksu "prime-select intel"
|
||||
lxsession-logout
|
||||
#lxsession-logout
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
gksu "prime-select nvidia"
|
||||
lxsession-logout
|
||||
#lxsession-logout
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
killall pytyle && sleep 1 && pytyle &
|
||||
|
|
@ -1,2 +1,11 @@
|
|||
free -m | awk 'NR==2{printf " %d%%\n", $3*100/$2 }'
|
||||
#
|
||||
# Icon and percentage
|
||||
#free -m | awk 'NR==2{printf " %d%%\n", $3*100/$2 }'
|
||||
|
||||
# Text and percentage
|
||||
#free -m | awk 'NR==2{printf "mem %d%%\n", $3*100/$2 }'
|
||||
|
||||
# Full
|
||||
free -m | awk 'NR==2{printf "Memory Usage: %s/%sMB (%.2f%%)\n", $3,$2,$3*100/$2 }'
|
||||
|
||||
|
||||
#
|
||||
|
|
|
|||
46
Scripts/scrolling_text.sh
Executable file
46
Scripts/scrolling_text.sh
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
# Scrolling text
|
||||
LIMIT=12
|
||||
SEPERATOR=" ~~~ "
|
||||
SEPERATOR_LENGTH="$(echo ${#SEPERATOR})"
|
||||
|
||||
i=1
|
||||
while :
|
||||
do
|
||||
# Get input and create the full string that will be used
|
||||
INPUT="$@"
|
||||
INPUT_LENGTH="$(echo ${#INPUT})"
|
||||
LOOPTAIL="$(echo $INPUT | cut -c -$LIMIT)"
|
||||
FULLSTRING="$(echo "$INPUT$SEPERATOR$LOOPTAIL")"
|
||||
|
||||
if [ $INPUT_LENGTH -le $LIMIT ]; then
|
||||
# Song has a smaller title than the limit, so no need to scroll.
|
||||
echo -n " "
|
||||
#echo -e -n "$INPUT"
|
||||
|
||||
#Justify - left
|
||||
#SPACES=$(($LIMIT-$INPUT_LENGTH+1))
|
||||
#echo -n "$INPUT" | awk -v spaces=$SPACES '{printf "%s%*.s\n", $0, spaces, " "}'
|
||||
|
||||
#Justify - center
|
||||
SPACES_AFTER=$(($LIMIT-$(((${#INPUT}+$LIMIT)/2))))
|
||||
printf "%*s\n" $(((${#INPUT}+$LIMIT)/2 + 1)) "$INPUT" | awk -v spaces=$SPACES_AFTER '{printf "%s%*.s\n", $0, spaces, " "}'
|
||||
|
||||
else
|
||||
LOOPTAIL="$(echo $INPUT | cut -c -$LIMIT)"
|
||||
FULLSTRING="$(echo "$INPUT$SEPERATOR$LOOPTAIL")"
|
||||
|
||||
echo -n " "
|
||||
# Show only LIMIT characters, from i to i+LIMIT. Output scrolls due to incrementing i
|
||||
echo -n $FULLSTRING | cut -c $i-$(($LIMIT+$i))
|
||||
#echo -n $FULLSTRING | awk -v charlimit="$LIMIT" -v start="$i" '{print substr($0,start,charlimit)}'
|
||||
|
||||
# If we have shown the full string, start over
|
||||
if [ $i -eq $(($INPUT_LENGTH+$SEPERATOR_LENGTH)) ]; then
|
||||
i=0
|
||||
fi
|
||||
|
||||
i=$(($i+1))
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
done
|
||||
73
Scripts/scrolling_title.sh
Executable file
73
Scripts/scrolling_title.sh
Executable file
|
|
@ -0,0 +1,73 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Run as follows: ./scrolling_title.sh mystring
|
||||
# It will look for "mystring" in all active windows and display the window title that includes this string.
|
||||
# Case sensitive!
|
||||
|
||||
# Limit for scrolling text
|
||||
LIMIT=30
|
||||
#SEPERATOR=" --- "
|
||||
#SEPERATOR=" -- "
|
||||
#SEPERATOR=" ~~~ "
|
||||
SEPERATOR=" ~~ "
|
||||
#SEPERATOR=" <> "
|
||||
SEPERATOR_LENGTH="$(echo ${#SEPERATOR})"
|
||||
|
||||
i=1
|
||||
while :
|
||||
do
|
||||
# For debugging purposes
|
||||
# printf "|%02d|" $i
|
||||
|
||||
INPUT="$(wmctrl -l | grep -v "wmctrl" | grep -m 1 $1 | awk -v skipstart=3 -v skipend=0 '{delim = ""; for (i=skipstart+1;i<=NF-skipend;i++) {printf delim "%s", $i; delim = OFS};}')"
|
||||
|
||||
# If the output has changed, start from the beginning
|
||||
if [[ "$INPUT" != "$OLD_INPUT" ]]; then
|
||||
i=1
|
||||
fi
|
||||
|
||||
# Save old input for the next check
|
||||
OLD_INPUT="$(echo $INPUT)"
|
||||
|
||||
# Optional: remove multibyte characters
|
||||
# (they dont show up properly while scrolling due to "cut -c" being identical to "cut -b")
|
||||
INPUT="$(echo $INPUT | tr -dc '[:print:]')"
|
||||
|
||||
INPUT_LENGTH="$(echo ${#INPUT})"
|
||||
|
||||
if [ $INPUT_LENGTH -le $LIMIT ]; then
|
||||
# Song has a smaller title than the limit, so no need to scroll.
|
||||
echo -n " "
|
||||
#echo -e -n "$INPUT"
|
||||
|
||||
#Justify - left
|
||||
#SPACES=$(($LIMIT-$INPUT_LENGTH+1))
|
||||
#echo -n "$INPUT" | awk -v spaces=$SPACES '{printf "%s%*.s\n", $0, spaces, " "}'
|
||||
|
||||
#Justify - center
|
||||
SPACES_AFTER=$(($LIMIT-$(((${#INPUT}+$LIMIT)/2))))
|
||||
printf "%*s\n" $(((${#INPUT}+$LIMIT)/2 + 1)) "$INPUT" | awk -v spaces=$SPACES_AFTER '{printf "%s%*.s\n", $0, spaces, " "}'
|
||||
|
||||
else
|
||||
LOOPTAIL="$(echo $INPUT | cut -c -$LIMIT)"
|
||||
FULLSTRING="$(echo "$INPUT$SEPERATOR$LOOPTAIL")"
|
||||
|
||||
echo -n " "
|
||||
# Show only LIMIT characters, from i to i+LIMIT. Output scrolls due to incrementing i
|
||||
echo -n $FULLSTRING | cut -c $i-$(($LIMIT+$i))
|
||||
#echo -n $FULLSTRING | awk -v charlimit="$LIMIT" -v start="$i" '{print substr($0,start,charlimit)}'
|
||||
|
||||
# If we have shown the full string, start over
|
||||
if [ $i -eq $(($INPUT_LENGTH+$SEPERATOR_LENGTH)) ]; then
|
||||
i=0
|
||||
fi
|
||||
|
||||
|
||||
i=$(($i+1))
|
||||
fi
|
||||
|
||||
# For fat bars/panels, I add this newline so the previous output is not visible
|
||||
echo ""
|
||||
|
||||
sleep 1
|
||||
done
|
||||
9
Scripts/scrot_plus_notification.sh
Executable file
9
Scripts/scrot_plus_notification.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
if [[ "$1" = "-s" ]]; then
|
||||
notify-send 'Select area to capture.' --icon=/home/elena/.icons/oomox-wally-flat/apps/scalable/gnome-screenshot.svg --urgency low
|
||||
scrot -s '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/Pictures/Screenshots/';
|
||||
notify-send "Screenshot taken." --icon=/home/elena/.icons/oomox-wally-flat/apps/scalable/gnome-screenshot.svg --urgency low
|
||||
else
|
||||
scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/Pictures/Screenshots/';
|
||||
notify-send "Screenshot taken." --icon=/home/elena/.icons/oomox-wally-flat/apps/scalable/gnome-screenshot.svg --urgency low
|
||||
fi
|
||||
1
Scripts/show_tray
Executable file
1
Scripts/show_tray
Executable file
|
|
@ -0,0 +1 @@
|
|||
tint2 ~/.config/tint2/trayonly
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
TEMP="$(sensors | grep "Package" | awk '{print $4}' | cut -c 2-3,6-8)"
|
||||
|
||||
# With icon
|
||||
# echo " $TEMP"
|
||||
echo " $TEMP"
|
||||
|
||||
# Just text
|
||||
echo "temp $TEMP"
|
||||
# echo "HEAT $TEMP"
|
||||
|
|
|
|||
3
Scripts/tint2_discord.sh
Executable file
3
Scripts/tint2_discord.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
wmctrl -s 2
|
||||
discord &
|
||||
#~/Scripts/focus.sh Discord
|
||||
|
|
@ -4,7 +4,13 @@ COMPTON="$(ps cax | grep compton)"
|
|||
if [ ${#COMPTON} -eq "0" ]; then
|
||||
#echo "compton is not running."
|
||||
# run compton
|
||||
compton -f -c &
|
||||
# compton -c &
|
||||
# compton &
|
||||
compton -c --shadow-exclude "class_g = 'Tint2'" -r 10
|
||||
# compton -c --shadow-exclude "class_g = 'Tint2'" --shadow-exclude "class_g = 'Dunst'" -r 1 --shadow-red 0.35 --shadow-green 0 -o 1 --shadow-blue 0.4 &
|
||||
# compton -c --shadow-exclude "class_g = 'Tint2'" -o 0.9 -r 10 -i 0.7 -f --active-opacity 0.9 --blur-background &
|
||||
# compton -i 0.7 -f --active-opacity 0.9 --blur-background &
|
||||
# compton --config ~/.config/compton/compton.conf
|
||||
else
|
||||
killall compton
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -11,20 +11,20 @@ MUTE="$(pactl list sinks | grep -i "mute" | head -1 | awk '{print $2}')"
|
|||
|
||||
if [[ "$MUTE" != "no" ]]; then
|
||||
# Icon only
|
||||
# echo " "
|
||||
echo " off"
|
||||
|
||||
# Text only
|
||||
echo "VOL OFF"
|
||||
# echo "VOL OFF"
|
||||
|
||||
# Line
|
||||
# echo "-----------"
|
||||
else
|
||||
# Text only
|
||||
if [ "${VOL%?}" -ge "10" ]; then
|
||||
echo "VOL $VOL"
|
||||
else
|
||||
echo "VOL $VOL"
|
||||
fi
|
||||
# if [ "${VOL%?}" -ge "10" ]; then
|
||||
# echo "VOL $VOL"
|
||||
# else
|
||||
# echo "VOL $VOL"
|
||||
# fi
|
||||
|
||||
# Line (with siji icons)
|
||||
# VOL="$(echo ${VOL%?})"
|
||||
|
|
@ -53,15 +53,19 @@ else
|
|||
# fi
|
||||
|
||||
# Icon only (simple)
|
||||
# echo " "
|
||||
if [ "${VOL%?}" -ge "10" ]; then
|
||||
echo " $VOL"
|
||||
else
|
||||
echo " $VOL"
|
||||
fi
|
||||
|
||||
#Icon only (gradual)
|
||||
# VOL="$(echo ${VOL%?})"
|
||||
# if [ "$VOL" -ge "85" ]; then
|
||||
# echo " "
|
||||
# if [ "$VOL" -ge "60" ]; then
|
||||
# echo " $VOL%"
|
||||
# elif [ "$VOL" -ge "20" ]; then
|
||||
# echo " "
|
||||
# echo " $VOL%"
|
||||
# else
|
||||
# echo " "
|
||||
# echo " $VOL%"
|
||||
# fi
|
||||
fi
|
||||
|
|
|
|||
9
Scripts/vpn_notify.sh
Executable file
9
Scripts/vpn_notify.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
# Replace with your own interface name here
|
||||
VPN_IF="tap"
|
||||
VPN="$(ifconfig -a | grep $VPN_IF)"
|
||||
|
||||
if [ ${#VPN} -eq "0" ]; then
|
||||
notify-send "VPN status:" "Disabled" --icon=dialog-information
|
||||
else
|
||||
notify-send "VPN status:" "Enabled" --icon=dialog-information
|
||||
fi
|
||||
14
Scripts/vpn_query.sh
Executable file
14
Scripts/vpn_query.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
# Replace with your own interface name here
|
||||
VPN_IF="tap"
|
||||
VPN="$(ifconfig -a | grep $VPN_IF)"
|
||||
|
||||
if [ ${#VPN} -eq "0" ]; then
|
||||
#echo "vpn off"
|
||||
# echo "VPN N"
|
||||
# echo "vpn "
|
||||
echo "vpn "
|
||||
else
|
||||
# echo "vpn "
|
||||
echo "vpn "
|
||||
# echo "VPN Y"
|
||||
fi
|
||||
|
|
@ -17,7 +17,7 @@ fi
|
|||
|
||||
if [[ "$1" = "-c" ]]; then
|
||||
echo "> Cleaning backups and exiting."
|
||||
rm -rf wally_backup-*
|
||||
rm -rf ~/.wally/wally_backup-*
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
|
|
@ -27,6 +27,10 @@ TIMESTAMP="$(date +%F-%H:%M:%S)"
|
|||
cp -r -L ~/.wally/links ~/.wally/wally_backup-$TIMESTAMP
|
||||
cp ~/.wally/path_to_wallpaper ~/.wally/wally_backup-$TIMESTAMP
|
||||
|
||||
# TODO!
|
||||
# To restore backups "cp -L desired_backup_dir/* ~/.wally/links"
|
||||
# And then "wally wallpaper_of_backed_up_dir"
|
||||
|
||||
# Declare arrays
|
||||
declare -a color
|
||||
declare -a XCOLOR_OLD
|
||||
|
|
@ -81,6 +85,9 @@ echo "> tint2 has restarted!"
|
|||
openbox --reconfigure
|
||||
echo "> Openbox is reconfigured!"
|
||||
|
||||
# Restarting dunst so it reloads config file
|
||||
dunst_restart
|
||||
|
||||
# Create steam theme
|
||||
python3 ~/Programs/wal_steam/mywalsteam.py -w
|
||||
echo "> Generated steam theme!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue