Switch to dotbot

This commit is contained in:
2025-01-22 19:33:28 +02:00
parent 7f08cd2aee
commit 955dbc6dc2
116 changed files with 100 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env sh
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}')
if [ "$HYPRGAMEMODE" = 1 ] ; then
hyprctl --batch "\
keyword animations:enabled 0;\
keyword decoration:drop_shadow 0;\
keyword decoration:blur:enabled 0;\
keyword general:gaps_in 0;\
keyword general:gaps_out 0;\
keyword general:border_size 1;\
keyword decoration:rounding 0"
exit
fi
hyprctl reload
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env sh
hyprctl dispatch -- exec '[workspace 1]' firefox &
hyprctl dispatch -- exec '[workspace 3 silent]' telegram-desktop &
sleep 1
hyprctl dispatch -- exec '[workspace 3 silent]' todoist &
sleep 1
hyprctl dispatch -- exec '[workspace 3 silent]' alacritty -e btop &
+37
View File
@@ -0,0 +1,37 @@
#!/usr/bin/env sh
function reload_eww() {
monitor_count=$(hyprctl monitors -j | jq length)
monitor_names_str=$(hyprctl monitors -j | jq -r '.[].name')
monitor_names=(${monitor_names_str// / })
eww close-all
sleep 1
if [[ $monitor_count == 2 ]]; then
if [[ ${monitor_names[0]} == "DP-1" ]]; then
eww open bar --id bar1 --arg monitor=0 --arg monitor-workspaces="[1,2]"
eww open bar --id bar2 --arg monitor=1 --arg monitor-workspaces="[3,4]"
eww open monitor-bump --arg monitor=1
elif [[ ${monitor_names[0]} == "DP-2" ]]; then
eww open bar --id bar2 --arg monitor=0 --arg monitor-workspaces="[3,4]"
eww open bar --id bar1 --arg monitor=1 --arg monitor-workspaces="[1,2]"
eww open monitor-bump --arg monitor=0
fi
elif [[ ${monitor_names[0]} == "DP-1" ]]; then
eww open bar --id bar1 --arg monitor=0 --arg monitor-workspaces="[1,2,3,4]"
elif [[ ${monitor_names[0]} == "DP-2" ]]; then
eww open bar --id bar1 --arg monitor=0 --arg monitor-workspaces="[1,2,3,4]"
eww open monitor-bump --arg monitor=0
fi
}
reload_eww
socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
if [[ $line =~ "monitorremoved" || $line =~ "monitoradded" ]]; then
reload_eww
fi
done
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
grim -g "$(slurp -d)" "$HOME/Pictures/Screenshots/$(date).png"
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
grim -g "$(slurp -o)" "$HOME/Pictures/Screenshots/$(date).png"
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
grim -g "$(slurp -d)" - | wl-copy
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
grim -g "$(slurp -o)" - | wl-copy