Changes. And more changes.
This commit is contained in:
0
i3/i3/scripts/genconfig.bash
Normal file → Executable file
0
i3/i3/scripts/genconfig.bash
Normal file → Executable file
@@ -28,7 +28,7 @@ lock()
|
||||
log "[W] Lockscreen not found, using color #$FALLBACK_COLOR as background."
|
||||
background_options="--color $FALLBACK_COLOR"
|
||||
fi
|
||||
i3lock $background_options
|
||||
i3lock $background_options #-p win --image "$HOME/pictures/windows-lockscreen.jpg"
|
||||
retval=$?
|
||||
[[ -z "$1" ]] && sleep 1 && xset dpms force off
|
||||
return $retval
|
||||
@@ -51,7 +51,7 @@ case "$1" in
|
||||
;;
|
||||
hibernate)
|
||||
log "[I] Hibernating."
|
||||
#lock &&
|
||||
#lock &&
|
||||
systemctl hibernate
|
||||
;;
|
||||
reboot)
|
||||
|
||||
5
i3/i3/scripts/pa-volume.bash
Normal file → Executable file
5
i3/i3/scripts/pa-volume.bash
Normal file → Executable file
@@ -19,6 +19,11 @@ setvol() {
|
||||
else
|
||||
echo "-"
|
||||
newvol=$(( $oldvol - $delta ))
|
||||
echo $newvol
|
||||
fi
|
||||
if [[ $newvol -gt 100 ]]; then
|
||||
echo "capping at 100 percent"
|
||||
newvol=100
|
||||
fi
|
||||
echo "newvol $newvol"
|
||||
else
|
||||
|
||||
0
i3/i3/scripts/status.d/battery.bash
Normal file → Executable file
0
i3/i3/scripts/status.d/battery.bash
Normal file → Executable file
0
i3/i3/scripts/status.d/conky_pacman.bash
Normal file → Executable file
0
i3/i3/scripts/status.d/conky_pacman.bash
Normal file → Executable file
11
i3/i3/scripts/status.d/pacman.bash
Normal file → Executable file
11
i3/i3/scripts/status.d/pacman.bash
Normal file → Executable file
@@ -1,6 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Total packages: $(pacman -Qq | wc -l)"
|
||||
echo ""
|
||||
echo "Updates available:"
|
||||
echo "$(pacman -Qu | column -t)"
|
||||
echo
|
||||
if ! pacman -Qu >/dev/null 2>&1; then
|
||||
echo "Up to date."
|
||||
else
|
||||
echo "Available updates:"
|
||||
echo "$(pacman -Qu | column -t)"
|
||||
fi
|
||||
|
||||
11
i3/i3/scripts/status.d/sysinfo.bash
Normal file → Executable file
11
i3/i3/scripts/status.d/sysinfo.bash
Normal file → Executable file
@@ -16,7 +16,6 @@ echo ""
|
||||
echo "CPU:"
|
||||
(echo "Name:|$(lscpu | grep "Model name:" | tr -s " " | cut -d " " -f 3-)"
|
||||
echo "Architecture:|$(uname -m)"
|
||||
echo "Temp:|$(sensors -u | grep "temp1_input" | cut -d ":" -f 2 | cut -d "." -f 1 | cut -c 2-)°C"
|
||||
echo "Load:|$(uptime | tr -s " " | cut -d " " -f 10 | tr -d ",")") | columnate
|
||||
echo ""
|
||||
echo "MEM:"
|
||||
@@ -31,5 +30,15 @@ echo ""
|
||||
echo "SWAP:"
|
||||
if [[ -z "$(swapon)" ]] ; then
|
||||
echo "none"
|
||||
else
|
||||
i=0
|
||||
swapon | (while read line; do
|
||||
[[ $i == 0 ]] && { i=1 ; continue ; }
|
||||
swappath=$(echo $line | cut -d ' ' -f 1)
|
||||
swapused=$(echo $line | cut -d ' ' -f 4)
|
||||
swaptotal=$(echo $line | cut -d ' ' -f 3)
|
||||
|
||||
echo "${swappath}:|${swapused}/${swaptotal}"
|
||||
done) | columnate
|
||||
fi
|
||||
|
||||
|
||||
0
i3/i3/scripts/status.d/wireless.bash
Normal file → Executable file
0
i3/i3/scripts/status.d/wireless.bash
Normal file → Executable file
Reference in New Issue
Block a user