mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
I already said I was sorry
This commit is contained in:
@@ -122,6 +122,7 @@ bindm = $mainMod, mouse:273, resizewindow
|
||||
#applications shortcuts
|
||||
bind = $mainMod, F4, exec, $HOME/repos_scripts/ani-new
|
||||
bind = $mainMod, F5, exec, $hypr_dir/wifi
|
||||
bind = $mainMod, R, exec, $hypr_dir/launch
|
||||
bind = $mainMod, return, exec, [workspace 2] foot
|
||||
bind = $mainMod, Q, exec, dmenu_run_history
|
||||
bind = $mainMod, A, exec, [workspace 1] google-chrome-stable
|
||||
@@ -167,6 +168,7 @@ windowrulev2=fullscreen,class:^(org.freedesktop.Xwayland)$
|
||||
#startup applications
|
||||
exec-once=dbus-update-activation-environment --systemd --all
|
||||
exec-once=ssh-agent
|
||||
exec-once=cd $HOME/github/arrpc && node src > /tmp/arrpc-log
|
||||
exec-once=swaybg -i $HOME/.config/wall/9.png
|
||||
exec-once=xrdb -merge $HOME/.config/.Xresource
|
||||
exec-once=$hypr_dir/workspace 'focus'
|
||||
|
||||
@@ -22,7 +22,7 @@ handle_it(){
|
||||
if [ "$choice" = "Extend" ];then
|
||||
setup_dual_monitor
|
||||
else
|
||||
sed -i "s/monitor=,preferred,auto,1/monitor=,1920x1080,0x0,1,mirror,eDP-1/g" "$HOME/.config/hypr/hyprland.conf"
|
||||
sed -i "s/monitor=,highrr,auto,1/monitor=,1920x1080,0x0,1,mirror,eDP-1/g" "$HOME/.config/hypr/hyprland.conf"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -37,7 +37,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 -r 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" && eww kill && eww open_many time_0 music_0
|
||||
printf "%s" "$line" | grep -q "monitorremoved" && sed -i "s/monitor=,1920x1080,0x0,1,mirror,eDP-1/monitor=,highrr,auto,1/g" "$HOME/.config/hypr/hyprland.conf" && eww kill && eww open_many time_0 music_0
|
||||
#recent workspace switcher
|
||||
current=$(printf "%s" "$line" | sed -nE 's_^(workspace)>>([^ ]*)_\1 \2_p')
|
||||
if [ -n "$current" ];then
|
||||
|
||||
Reference in New Issue
Block a user