diff options
| author | Mitsuo Tokumori <[email protected]> | 2024-08-29 03:31:44 +0900 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2024-08-29 03:32:26 +0900 |
| commit | f91eafebefecbe8b29e72cf650d65663ae1a45b2 (patch) | |
| tree | a5af3183a6e518e9b6d884a90fb6cab48f2d2168 | |
| parent | a888e54f461edf2bc609e3d603a6f41d2ec27e7b (diff) | |
| download | dotfiles-f91eafebefecbe8b29e72cf650d65663ae1a45b2.tar.gz dotfiles-f91eafebefecbe8b29e72cf650d65663ae1a45b2.tar.bz2 dotfiles-f91eafebefecbe8b29e72cf650d65663ae1a45b2.zip | |
Fix QOF
| -rw-r--r-- | local/bin/README.txt | 2 | ||||
| -rwxr-xr-x | local/bin/audio_control.sh | 7 | ||||
| -rwxr-xr-x | local/bin/dmenu-webshortcuts.sh | 2 | ||||
| -rwxr-xr-x | local/bin/laptop-xrandr.sh | 9 |
4 files changed, 16 insertions, 4 deletions
diff --git a/local/bin/README.txt b/local/bin/README.txt index 094a5b3..280b362 100644 --- a/local/bin/README.txt +++ b/local/bin/README.txt @@ -7,9 +7,11 @@ I also use other people's awesome scrips. I store them in `~/code` and then slink the ones I use in `~/.local/bin`. NOTATION +(notation is messed up, I'd be better if only used dashed prefixes) * All scripts here should end in ".sh" * `laptop-*` scripts might only work on my current machine * `sb-*` scripts are meant to be called by dwmblocks +* `*_control` scripts are used in conjunction with xbindkeys(1) and `sb-*` See also: https://github.com/LukeSmithxyz/voidrice/tree/master/.local/bin/statusbar https://github.com/LukeSmithxyz/dwmblocks/blob/master/config.h diff --git a/local/bin/audio_control.sh b/local/bin/audio_control.sh index a161690..a257120 100755 --- a/local/bin/audio_control.sh +++ b/local/bin/audio_control.sh @@ -8,6 +8,13 @@ send_signal() { pkill -RTMIN+$signal dwmblocks } +# WIP: change default sink (speaker). E.g., when connecting HDMI. +change_sink() { + pactl list sinks | grep "Name:" + # Use tab completion if set up interactively + pactl "set-default-sink alsa_output.pci-0000_05_00.6.analog-stereo" +} + case $1 in inc) pactl set-sink-volume @DEFAULT_SINK@ +$delta% ;; dec) pactl set-sink-volume @DEFAULT_SINK@ -$delta% ;; diff --git a/local/bin/dmenu-webshortcuts.sh b/local/bin/dmenu-webshortcuts.sh index 70db4f6..e1d233c 100755 --- a/local/bin/dmenu-webshortcuts.sh +++ b/local/bin/dmenu-webshortcuts.sh @@ -82,7 +82,7 @@ case "$keyword" in "rae") xdg-open "https://dle.rae.es/?w=$search_term" ;; # Mitsuo - "pw") xdg-open "http://wiki.pulse15/index.php?title=${search_term// /_}" ;; + "pw") xdg-open "http://wiki.pulse15/index.php?search=${search_term// /+}" ;; "factorio") xdg-open "https://wiki.factorio.com/${search_term// /_}" ;; "dst") xdg-open "https://dontstarve.wiki.gg/wiki/${search_term// /_}" ;; "mc") xdg-open "https://minecraft.wiki/w/${search_term// /_}" ;; diff --git a/local/bin/laptop-xrandr.sh b/local/bin/laptop-xrandr.sh index d3c5c49..01b0c52 100755 --- a/local/bin/laptop-xrandr.sh +++ b/local/bin/laptop-xrandr.sh @@ -10,10 +10,13 @@ simple_2_monitor() { # enable xrandr --output eDP --auto \ - --output HDMI-A-0 --auto --right-of eDP + --output HDMI-A-0 --auto --left-of eDP # disable - #xrandr --output eDP --auto \ - # --output HDMI-A-0 --off + xrandr --output eDP --auto \ + --output HDMI-A-0 --off } +# Thank you: https://www.maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/ +# xrandr --auto --output HDMI-A-0 --mode 1920x1080 --right-of eDP + simple_2_monitor |
