mirror of
https://git.poridge.club/aurel1on/dwm-cute.git
synced 2024-11-10 02:30:27 +03:00
Add files via upload
This commit is contained in:
parent
55bc15ff7b
commit
8cf0427445
17
scripts/dunstvol
Normal file
17
scripts/dunstvol
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
# changeVolume
|
||||
|
||||
msgTag="volumechange"
|
||||
iconPath="/usr/share/icons/Adwaita/32x32/legacy/"
|
||||
|
||||
volume="$(pactl get-sink-volume 0 | awk '{print $5}' )"
|
||||
mute="$(pactl get-sink-mute 0 | awk '{print $2}' )"
|
||||
|
||||
|
||||
if [[ $volume == 0 || "$mute" == "yes" ]]; then
|
||||
# Show the sound muted notification
|
||||
notify-send -a "changeVolume" -h string:x-dunst-stack-tag:$msgTag -i $iconPath/audio-volume-muted.png "Volume muted" --expire-time=1000
|
||||
else
|
||||
# Show the volume notification
|
||||
notify-send -a "changeVolume" -h string:x-dunst-stack-tag:$msgTag -i $iconPath/audio-volume-high.png -h int:value:"$volume" "Volume: ${volume}" --expire-time=1000
|
||||
fi
|
8
scripts/restartdwm
Normal file
8
scripts/restartdwm
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd ~/dwm
|
||||
|
||||
make -j4
|
||||
make install
|
||||
|
||||
killall dwm
|
19
scripts/startdwm
Normal file
19
scripts/startdwm
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
#picom -b --vsync --experimental-backends
|
||||
#feh --bg-scale ~/path/to/img.png
|
||||
#setxkbmap us,ru -option 'grp:shift_alt_toggle'
|
||||
|
||||
# Statusbar loop
|
||||
while true; do
|
||||
ubar
|
||||
sleep 1s # Update time every second
|
||||
done &
|
||||
|
||||
# relaunch DWM
|
||||
while true; do
|
||||
# Log stderror to a file
|
||||
~/.local/bin/dwm 2> ~/.dwm.log
|
||||
# No error logging
|
||||
#dwm >/dev/null 2>&1
|
||||
done
|
13
scripts/ubar
13
scripts/ubar
@ -1 +1,12 @@
|
||||
e
|
||||
#!/bin/sh
|
||||
|
||||
SEP="┇"
|
||||
|
||||
#RAM_USAGE=$( free -h | awk '/Mem:/ { printf(" %5s/%s \n", $3, $2) }' )
|
||||
#CPU_USAGE=$( mpstat 1 1 | awk '/Av/ {printf(" %s% \n", $(NF-9))}' )
|
||||
LANG=$( xset -q|grep LED| awk '{ if (substr ($10,5,1) == 1) print "[RU]"; else print "[EN]"; }' )
|
||||
DATE_TIME=$(date +" %d.%m $SEP %H:%M")
|
||||
BATT=$(cat /sys/class/power_supply/BAT0/capacity)
|
||||
|
||||
xsetroot -rv -name " $SEP $LANG $SEP $BATT% $SEP $DATE_TIME "
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user