home: scripts: simplify

This commit is contained in:
Guanran Wang 2023-12-29 23:44:32 +08:00
parent 79bd9997a5
commit b0ece0c86c
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
3 changed files with 3 additions and 12 deletions

View file

@ -4,13 +4,11 @@
# #
# bind vars # bind vars
$lock = ~/.local/bin/wrapped-swaylock-effects
$wp = ~/.local/bin/wrapped-swww $wp = ~/.local/bin/wrapped-swww
$dwp = ~/.local/bin/wrapped-mpvpaper $dwp = ~/.local/bin/wrapped-mpvpaper
$changevolume = ~/.local/bin/wrapped-pamixer # use swayosd instead $changevolume = ~/.local/bin/wrapped-pamixer # use swayosd instead
$changebrightness = ~/.local/bin/wrapped-brightnessctl $changebrightness = ~/.local/bin/wrapped-brightnessctl
$screenshot = ~/.local/bin/screenshot $screenshot = ~/.local/bin/screenshot
$inputfix = ~/.local/bin/minecraft-inputfix
$video_path = ~/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/workshop/content/431960 $video_path = ~/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/workshop/content/431960
# binds # binds
@ -20,8 +18,8 @@ bind = SUPER, E, exec, xdg-open ~
bind = SUPER, W, exec, xdg-open https: # why is this working bind = SUPER, W, exec, xdg-open https: # why is this working
bind = CONTROL SHIFT, Escape, exec, gnome-system-monitor bind = CONTROL SHIFT, Escape, exec, gnome-system-monitor
bind = ALT, R, exec, $inputfix bind = ALT, R, exec, zenity --width 500 --entry | wl-copy
bind = SUPER, Backspace, exec, $lock bind = SUPER, Backspace, exec, swaylock
bind = SUPER, F, fullscreen, 0 bind = SUPER, F, fullscreen, 0
bind = SUPER SHIFT, F, fullscreen, 1 bind = SUPER SHIFT, F, fullscreen, 1

View file

@ -1,7 +0,0 @@
#!/usr/bin/env bash
ydotool key 20:1 20:0 # press t
echo $(zenity --width 500 --entry) | wl-copy
ydotool key 29:1 47:1 # press ctrl + v
sleep 0.1
ydotool key 29:0 47:0 28:1 28:0 # release ctrl + v, press return

View file

@ -3,7 +3,7 @@
# Original Script: https://github.com/ericmurphyxyz/dotfiles/blob/master/.local/bin/changebrightness # Original Script: https://github.com/ericmurphyxyz/dotfiles/blob/master/.local/bin/changebrightness
send_notification() { send_notification() {
brightness=$((($(brightnessctl get) / 240))) brightness=$(($(brightnessctl get) / 240))
dunstify -a "changebrightness" -u low -r 9991 -h int:value:"$brightness" -i "brightness-$1" "Brightness: $brightness%" -t 2000 dunstify -a "changebrightness" -u low -r 9991 -h int:value:"$brightness" -i "brightness-$1" "Brightness: $brightness%" -t 2000
} }