changed things...

This commit is contained in:
coolnsx
2023-01-02 23:56:10 +05:30
parent 04c6ec94be
commit 1f568f3cc2
9 changed files with 253 additions and 12 deletions

View File

@@ -98,8 +98,6 @@ bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
bind = $mainMod,Tab,cyclenext,
bind = $mainMod,Tab,bringactivetotop,
bind = ALT,Tab,cyclenext,
bind = ALT,Tab,bringactivetotop,
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1

View File

@@ -10,6 +10,7 @@ setup_dual_monitor(){
hyprctl dispatch moveworkspacetomonitor "$i 0"
done
hyprctl dispatch moveworkspacetomonitor "4 1"
eww open-many time_1 music_1
fi
}
@@ -35,7 +36,7 @@ case $1 in
#shows the workspace number as notification whenever u switch workspaces and also handles the dual monitor setup on the fly(perfect for laptop users)
socat - UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock | while read line;do
printf "%s" "$line" | grep -q "monitoradded" && handle_it "$line"
printf "%s" "$line" | grep -q "monitorremoved" && sed -i "s/monitor=,1920x1080,0x0,1,mirror,eDP-1/monitor=,preferred,auto,1/g" $HOME/.config/hypr/hyprland.conf
printf "%s" "$line" | grep -q "monitorremoved" && sed -i "s/monitor=,1920x1080,0x0,1,mirror,eDP-1/monitor=,preferred,auto,1/g" $HOME/.config/hypr/hyprland.conf && eww close music_1 time_1
notify-send -i "lol" "$(printf "$line" | sed -nE 's_^(workspace)>>([^ ]*)_\1 \2_p')" -r 1 -t 700 2>/dev/null
done ;;
toggle)