312 current 2025-02-09 03:05:47 25.05.20241217.d3c42f1 6.6.66 *

This commit is contained in:
2025-02-09 03:06:00 -05:00
parent a1c7b9bfd7
commit 1738775517
12 changed files with 190 additions and 10 deletions

View File

@@ -0,0 +1,5 @@
#!/bin/bash
xrandr --output HDMI-2 --mode 1920x1080 --same-as eDP-1 --scale 1x1
bspc desktop Desktop --remove
bspc wm -r
bspc desktop Desktop --remove

View File

@@ -0,0 +1,40 @@
#!/bin/bash
shift="$1"
current=$(bspc query -D -d --names)
#echo "$(($current + 1))"
if [[ "$shift" == "left" ]]; then
iter=$(expr $current - 1)
if [[ "$iter" == 0 ]]; then
iter="20"
fi
while [[ "$iter" != "$current" ]]
do
if [[ "$(bspc query -N -d $iter)" != "" ]]; then
bspc desktop -f "$iter"
exit 0
fi
iter=$(expr $iter - 1)
if [[ "$iter" == 0 ]]; then
iter="20"
fi
done
elif [[ "$shift" == "right" ]]; then
iter=$(expr $current + 1)
if [[ "$iter" == 21 ]]; then
iter="1"
fi
while [[ "$iter" != "$current" ]]
do
if [[ "$(bspc query -N -d $iter)" != "" ]]; then
bspc desktop -f "$iter"
exit 0
fi
iter=$(expr $iter + 1)
if [[ "$iter" == 21 ]]; then
iter="1"
fi
done
else
echo "incorrect arguments. sorry!"
fi

View File

@@ -0,0 +1,8 @@
#!/bin/bash
xrandr --output HDMI-1 --off
xrandr --output HDMI-2 --off
xrandr --output eDP-1 --mode 1920x1080 --primary
bspc desktop Desktop --remove
bspc monitor HDMI-1 -r
bspc monitor HDMI-2 -r
bspc wm -r

View File

@@ -0,0 +1,12 @@
#!/bin/bash
# swaps the current desktop with selected
shift="$1"
current=$(bspc query -D -d --names)
# if same, exit
[[ $shift == $current ]] && exit 1
bspc desktop $shift -n t
bspc desktop $current -s t
bspc desktop $current -n $shift
bspc desktop t -n $current