diff options
| author | ivan-boikov <ik.boikov.public@protonmail.com> | 2023-12-01 17:38:43 +0100 |
|---|---|---|
| committer | ivan-boikov <ik.boikov.public@protonmail.com> | 2023-12-01 17:38:43 +0100 |
| commit | 8af0c700789d64b29bdded59adf7761521305212 (patch) | |
| tree | ca0ee7f771b91271fba55bc7a908ca7c80a08a50 /scripts/.local | |
| parent | 46425712409ddfd693d31a5ca416a2e6ef34fbd6 (diff) | |
1
Diffstat (limited to 'scripts/.local')
| -rwxr-xr-x | scripts/.local/bin/dcpug | 5 | ||||
| -rwxr-xr-x | scripts/.local/bin/tab-scale | 4 |
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 |
