diff options
| -rwxr-xr-x | scripts/.local/bin/dcpug | 5 | ||||
| -rwxr-xr-x | scripts/.local/bin/tab-scale | 4 | ||||
| -rw-r--r-- | shell/.config/shell/aliasrc | 15 |
3 files changed, 20 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 diff --git a/shell/.config/shell/aliasrc b/shell/.config/shell/aliasrc index 8b48a2f..fd2c815 100644 --- a/shell/.config/shell/aliasrc +++ b/shell/.config/shell/aliasrc @@ -81,3 +81,18 @@ alias wttr='curl https://wttr.in/paris-france' [ -d "$XDG_CONFIG_HOME/abook/" ] || mkdir -p "$XDG_CONFIG_HOME/abook/" [ -d "$XDG_DATA_HOME/abook/" ] || mkdir -p "$XDG_DATA_HOME/abook/" alias abook='abook --config $XDG_CONFIG_HOME/abook/abookrc --datafile $XDG_DATA_HOME/abook/addressbook' + +alias beet='$XDG_DATA_HOME/venv/beets/bin/beet' + +# https://unix.stackexchange.com/questions/224227/how-do-you-make-an-alias-or-function-that-retains-tab-completion +# First find out which complete-function is used for the systemctl command: +# complete | grep " systemctl$" +# The output looks like this: +# complete -F _functionname systemctl +# Then use: +# complete -F _functionname sctl +# To register the function for the completion of your alias. + +# beet completion is lazy and will only load after <Tab>ing the actual command +# load manually then +# source /usr/share/bash-completion/completions/<whatever> |
