summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-01-24 17:36:36 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-01-24 17:36:36 +0530
commitfd6979ba8b9eeada306f521165f956e1bf828610 (patch)
tree34b8ddee63e7e7d10ad979ad4c8022c434406966
parent6fdbeb79f7d9937b07016ede653d02d3ddf08877 (diff)
volume-low icon not showing fix+ kbesccaps noreq for lsusb
-rw-r--r--.config/sxhkd/sxhkdrc6
-rwxr-xr-x.scripts/kbesccaps7
-rwxr-xr-x.scripts/volumechanger4
3 files changed, 8 insertions, 9 deletions
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
index 0705fe2..e10f39b 100644
--- a/.config/sxhkd/sxhkdrc
+++ b/.config/sxhkd/sxhkdrc
@@ -15,7 +15,7 @@ super + F4
##Not able to set wpctl here temporarily fix in future
# Change volume
XF86Audio{Raise,Lower}Volume
- volumechanger {up,down} && dunstify "Volume Changed" "Volume set to $(volumecurr)" -i {volume-high,volume-low} -t 1500 -r {1235,1236}
+ volumechanger {up,down}
#Toggle play/pause in spotify (universal)
XF86AudioPlay
@@ -52,7 +52,9 @@ super + p
#Launch <go,h,bash>top
super + shift {g,h,b}
exec $TERMINAL {go,h,bash}top
-
+#Launch to-do-list
+super + shift + d
+ exec $TERMINAL dooit
#Launch galculator - a GTK 2/3 based scientific calculator
XF86Calculator
exec $TERMINAL -c "stfloat" -e galculator
diff --git a/.scripts/kbesccaps b/.scripts/kbesccaps
index b6b187c..d650fa5 100755
--- a/.scripts/kbesccaps
+++ b/.scripts/kbesccaps
@@ -4,7 +4,8 @@
##whenever I plug in any of my keyboard (wired or wireless)
#PreRequisite lsusb/usbutils
-[ -z "$(command -v lsusb)" ] && echo "Install usbutils" && exit
+#[ -z "$(command -v lsusb)" ] && echo "Install usbutils" && exit
+#[ -n "$(lsusb | grep -e 04f3:152e -e 25a7:fa67)" ] && setxkbmap -option caps:escape || exit
#for cronjob
export DISPLAY=:0
@@ -12,7 +13,3 @@ export DISPLAY=:0
#If setxkbmap query string is of zero length
#then setxkbmap set caps lock as esc key
[[ -z "$(setxkbmap -query | grep "caps:escape")" ]] && setxkbmap -option caps:escape
-
-#[ -n "$(lsusb | grep -e 04f3:152e -e 25a7:fa67)" ] && setxkbmap -option caps:escape || exit
-
-
diff --git a/.scripts/volumechanger b/.scripts/volumechanger
index 2e97506..cc09e67 100755
--- a/.scripts/volumechanger
+++ b/.scripts/volumechanger
@@ -1,7 +1,7 @@
#!/bin/sh
if [ $1 = up ]; then
- wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ ##increase by 2%
+ wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ && dunstify "Volume Changed" "Volume set to $(volumecurr)" -i volume-high -t 1500 -r 1235 ##increase by 2%
elif [ $1 = down ];then
- wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%- ##decrease by 2%
+ wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%- && dunstify "Volume Changed" "Volume set to $(volumecurr)" -i volume-low -t 1500 -r 1236 ##decrease by 2%
fi