diff options
| author | Mitsuo Tokumori <[email protected]> | 2025-07-01 19:15:59 +0900 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2025-07-01 19:15:59 +0900 |
| commit | 6b9a5c00fe385338dd7fef20d3638abc1b20b419 (patch) | |
| tree | 300b082f335221b7290cdf05caaa8e2de4623111 /public | |
| parent | 64d78fb9a37d4eaef23764e2c0a15a988d3ac12b (diff) | |
| download | dotfiles-6b9a5c00fe385338dd7fef20d3638abc1b20b419.tar.gz dotfiles-6b9a5c00fe385338dd7fef20d3638abc1b20b419.tar.bz2 dotfiles-6b9a5c00fe385338dd7fef20d3638abc1b20b419.zip | |
Add dmenu-opentable.sh
Diffstat (limited to 'public')
| -rwxr-xr-x | public/.local/bin/dmenu-opentable.sh | 7 | ||||
| -rwxr-xr-x | public/.local/bin/laptop-xrandr.sh | 8 | ||||
| -rw-r--r-- | public/.xbindkeysrc | 3 |
3 files changed, 13 insertions, 5 deletions
diff --git a/public/.local/bin/dmenu-opentable.sh b/public/.local/bin/dmenu-opentable.sh new file mode 100755 index 0000000..69786bb --- /dev/null +++ b/public/.local/bin/dmenu-opentable.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# xdg-open a file selected through dmenu + +DIR="$HOME/docs/spreadsheet" +FILE=$(ls "$DIR" | dmenu -i -l 10 -p "Select spreadsheet:") +[ -z "$FILE" ] && exit 1 +xdg-open "$DIR/$FILE" diff --git a/public/.local/bin/laptop-xrandr.sh b/public/.local/bin/laptop-xrandr.sh index cd3a66f..833586c 100755 --- a/public/.local/bin/laptop-xrandr.sh +++ b/public/.local/bin/laptop-xrandr.sh @@ -9,11 +9,9 @@ simple_2_monitor() { # enable - xrandr --output eDP --auto \ - --output HDMI-A-0 --auto --left-of eDP + xrandr --output eDP --auto --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/ @@ -34,5 +32,5 @@ case $1 in 4k) only_hdmi_4k ;; 2k) only_hdmi_2k ;; reset) xrandr ;; - *) only_hdmi_4k + *) simple_2_monitor ;; esac diff --git a/public/.xbindkeysrc b/public/.xbindkeysrc index b13bb79..869a1c8 100644 --- a/public/.xbindkeysrc +++ b/public/.xbindkeysrc @@ -162,6 +162,9 @@ "screenshot_ocr.sh" Mod4 + s +"dmenu-opentable.sh" + Mod4 + d + # This key combination (Mod4 + Space) seems to break xbindkeys # See Also: # https://bbs.archlinux.org/viewtopic.php?id=226182 |
