summaryrefslogtreecommitdiff
path: root/scripts/.local/bin
diff options
context:
space:
mode:
authorivan-boikov <ik.boikov.public@protonmail.com>2023-12-01 17:38:43 +0100
committerivan-boikov <ik.boikov.public@protonmail.com>2023-12-01 17:38:43 +0100
commit8af0c700789d64b29bdded59adf7761521305212 (patch)
treeca0ee7f771b91271fba55bc7a908ca7c80a08a50 /scripts/.local/bin
parent46425712409ddfd693d31a5ca416a2e6ef34fbd6 (diff)
1
Diffstat (limited to 'scripts/.local/bin')
-rwxr-xr-xscripts/.local/bin/dcpug5
-rwxr-xr-xscripts/.local/bin/tab-scale4
2 files changed, 5 insertions, 4 deletions
diff --git a/scripts/.local/bin/dcpug b/scripts/.local/bin/dcpug
index 736cfd7..2392676 100755
--- a/scripts/.local/bin/dcpug
+++ b/scripts/.local/bin/dcpug
@@ -7,9 +7,10 @@ fi
profiles="$(sed 's/ /\\n/g' /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors)"
-profile=$(printf '%s' "$profiles" | $dmenu)
+profile=$(echo "$profiles" | $dmenu)
-notify-send "Set CPU profile: $profile"
sudo -A cpupower frequency-set --governor "$profile"
# repeat, for good measure
sudo -A cpupower frequency-set --governor "$profile"
+
+notify-send "Set CPU profile: $profile"
diff --git a/scripts/.local/bin/tab-scale b/scripts/.local/bin/tab-scale
index 7ae1aad..25992a3 100755
--- a/scripts/.local/bin/tab-scale
+++ b/scripts/.local/bin/tab-scale
@@ -42,8 +42,8 @@ xsetwacom --set "${stylus}" MapToOutput ${Wx}x${Wy}+$dx+$dy
# map stylus buttons
# stylus touch to mouse left click
xsetwacom --set "${stylus}" button 1 1
-# stylus low button press to mouse left click
-xsetwacom --set "${stylus}" button 2 1
+# stylus low button press to mouse middle click
+xsetwacom --set "${stylus}" button 2 2
# stylus high button press to mouse right click
xsetwacom --set "${stylus}" button 3 3