diff options
Diffstat (limited to 'home-manager/i3/scripts')
| -rwxr-xr-x | home-manager/i3/scripts/exit.sh | 20 | ||||
| -rwxr-xr-x | home-manager/i3/scripts/image_upload.sh | 7 | ||||
| -rwxr-xr-x | home-manager/i3/scripts/monitor-config.sh | 23 | ||||
| -rwxr-xr-x | home-manager/i3/scripts/rofi-passmenu | 27 | ||||
| -rwxr-xr-x | home-manager/i3/scripts/workspaces.sh | 7 | ||||
| -rw-r--r-- | home-manager/i3/scripts/workspaces.txt | 11 |
6 files changed, 0 insertions, 95 deletions
diff --git a/home-manager/i3/scripts/exit.sh b/home-manager/i3/scripts/exit.sh deleted file mode 100755 index 6e1f492..0000000 --- a/home-manager/i3/scripts/exit.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash -choice=$(echo -e "Sleep\nLock\nLock and sleep\nExit i3" | rofi -dmenu -i -p "What do you want to do") -case $choice in - "Sleep") - systemctl suspend - ;; - "Lock") - i3lock -eti /usr/share/backgrounds/lockscreen.png - ;; - "Lock and sleep") - i3lock -eti /usr/share/backgrounds/lockscreen.png - systemctl suspend - ;; - "Exit i3") - i3-msg exit - ;; - *) - notify-send "Canceling" - ;; -esac diff --git a/home-manager/i3/scripts/image_upload.sh b/home-manager/i3/scripts/image_upload.sh deleted file mode 100755 index ea327ad..0000000 --- a/home-manager/i3/scripts/image_upload.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -image_name=$(rofi -dmenu -l 0 -p "Image name") -xclip -selection clipboard -t image/png -o > ~/Documents/tehbox-files/$image_name -eval $(ssh-agent) -rsync ~/Documents/tehbox-files/$image_name boss@tehbox.org:/srv/files -notify-send "uploaded https://files.tehbox.org/$image_name" -echo -n "https://files.tehbox.org/$image_name" | xclip -i -selection clipboard diff --git a/home-manager/i3/scripts/monitor-config.sh b/home-manager/i3/scripts/monitor-config.sh deleted file mode 100755 index 8f17660..0000000 --- a/home-manager/i3/scripts/monitor-config.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -choice=$(echo -e "One monitor\nTwo monitors" | rofi -dmenu -i -p "What monitor setup to use") - -monitor1=$(xrandr | grep -E "eDP(-1(-1)?)?" | awk '{print $1 }') -monitor2=$(xrandr | grep -E "HDMI(-A-0)?(-1(-1)?)?" | awk '{print $1 }') - -case $choice in - "One monitor") - xrandr --output $monitor1 --primary --mode 1920x1080 --rate 144 --pos 0x0 --rotate normal --output $monitor2 --off - sleep 1 - i3-msg restart - ;; - "Two monitors") - xrandr --output $monitor1 --primary --mode 1920x1080 --rate 144 --pos 0x0 --rotate normal --output $monitor2 --mode 1920x1080 --rate 144 --pos 1920x0 --rotate normal - sleep 1 - i3-msg restart - ;; - *) - notify-send "Invalid response, canceling" - ;; -esac - diff --git a/home-manager/i3/scripts/rofi-passmenu b/home-manager/i3/scripts/rofi-passmenu deleted file mode 100755 index 798961b..0000000 --- a/home-manager/i3/scripts/rofi-passmenu +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -shopt -s nullglob globstar - -typeit=1 - -if [[ -n $WAYLAND_DISPLAY ]]; then - rofi=rofi-wl - xdotool="ydotool type --file -" -elif [[ -n $DISPLAY ]]; then - rofi=rofi - xdotool="xdotool type --clearmodifiers --file -" -else - echo "Error: No Wayland or X11 display detected" >&2 - exit 1 -fi - -prefix=${PASSWORD_STORE_DIR-~/.password-store} -password_files=( "$prefix"/**/*.gpg ) -password_files=( "${password_files[@]#"$prefix"/}" ) -password_files=( "${password_files[@]%.gpg}" ) - -password=$(printf '%s\n' "${password_files[@]}" | "$rofi" -dmenu "$@") - -[[ -n $password ]] || exit - -pass show "$password" | { IFS= read -r pass; printf %s "$pass"; } | $xdotool diff --git a/home-manager/i3/scripts/workspaces.sh b/home-manager/i3/scripts/workspaces.sh deleted file mode 100755 index 3ad68ef..0000000 --- a/home-manager/i3/scripts/workspaces.sh +++ /dev/null @@ -1,7 +0,0 @@ -choice=$(cat ~/.i3_commands/workspaces.txt | rofi -dmenu -i -p "Which workspace to switch to") -if [[ $1 == "move" ]] -then - i3-msg move container to workspace \"$choice\" -else - i3-msg workspace \"$choice\" -fi diff --git a/home-manager/i3/scripts/workspaces.txt b/home-manager/i3/scripts/workspaces.txt deleted file mode 100644 index 84b3bf0..0000000 --- a/home-manager/i3/scripts/workspaces.txt +++ /dev/null @@ -1,11 +0,0 @@ -1: -2: -3: -4: -5: -6: -7: -8: -9: -10: -S: |
