mirror of
https://github.com/GeorgeSG/dotfiles.git
synced 2026-09-05 08:58:44 +00:00
Switch to dotbot
This commit is contained in:
Executable
+15
@@ -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
|
||||
Executable
+8
@@ -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 &
|
||||
Executable
+37
@@ -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
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
grim -g "$(slurp -d)" "$HOME/Pictures/Screenshots/$(date).png"
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
grim -g "$(slurp -o)" "$HOME/Pictures/Screenshots/$(date).png"
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
grim -g "$(slurp -d)" - | wl-copy
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
grim -g "$(slurp -o)" - | wl-copy
|
||||
Reference in New Issue
Block a user