Improve configs
This commit is contained in:
		
							parent
							
								
									fdefb7037b
								
							
						
					
					
						commit
						eb3067ff29
					
				
					 13 changed files with 67 additions and 20 deletions
				
			
		|  | @ -22,6 +22,7 @@ input { | |||
| 	numlock_by_default = true | ||||
| 
 | ||||
|     follow_mouse = 1 | ||||
| 	mouse_refocus = false | ||||
| 	accel_profile = flat | ||||
| 
 | ||||
|     touchpad { | ||||
|  | @ -38,9 +39,10 @@ general { | |||
|     gaps_out = 6 | ||||
|     border_size = 1 | ||||
| 
 | ||||
| 	cursor_inactive_timeout = 3 | ||||
| 	no_cursor_warps = true | ||||
| 
 | ||||
|     layout = dwindle | ||||
|     layout = master | ||||
| } | ||||
| 
 | ||||
| decoration { | ||||
|  | @ -70,12 +72,16 @@ dwindle { | |||
|     # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more | ||||
|     pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below | ||||
|     preserve_split = yes # you probably want this | ||||
| 	no_gaps_when_only = yes # whether to apply gaps when there is only one window | ||||
| 
 | ||||
| 	no_gaps_when_only = yes | ||||
| } | ||||
| 
 | ||||
| master { | ||||
|     # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more | ||||
|     new_is_master = true | ||||
| 	mfact = 0.5 | ||||
| 
 | ||||
| 	no_gaps_when_only = yes | ||||
| } | ||||
| 
 | ||||
| source = ~/.config/hypr/binds.conf | ||||
|  |  | |||
|  | @ -5,18 +5,28 @@ bind = $main_mod, return, exec, $TERMINAL | |||
| bind = $main_mod, Q, killactive, | ||||
| bind = $main_mod, M, exit, | ||||
| bind = $main_mod, S, togglefloating, | ||||
| bind = $main_mod, F, fullscreen, | ||||
| bind = $main_mod, D, exec, j4-dmenu-desktop --dmenu="$DMENU" | ||||
| bind = $main_mod, P, pseudo, # dwindle | ||||
| bind = $main_mod, J, togglesplit, # dwindle | ||||
| bind = $main_mod, Pause, exec, menu-shutdown | ||||
| bind = $main_mod, Print, exec, screenshot | ||||
| 
 | ||||
| bind = $main_mod SHIFT, R, exec, autostart-manage run-wayland | ||||
| 
 | ||||
| # Move focus with mainMod + arrow keys | ||||
| bind = $main_mod, left, movefocus, l | ||||
| bind = $main_mod, right, movefocus, r | ||||
| bind = $main_mod, up, movefocus, u | ||||
| bind = $main_mod, down, movefocus, d | ||||
| # Move focus with mainMod + hjkl keys | ||||
| bind = $main_mod, h, movefocus, l | ||||
| bind = $main_mod, j, movefocus, d | ||||
| bind = $main_mod, k, movefocus, u | ||||
| bind = $main_mod, l, movefocus, r | ||||
| # Move window with mainMod + hjkl keys | ||||
| bind = $main_mod SHIFT, h, movewindow, l | ||||
| bind = $main_mod SHIFT, j, movewindow, d | ||||
| bind = $main_mod SHIFT, k, movewindow, u | ||||
| bind = $main_mod SHIFT, l, movewindow, r | ||||
| 
 | ||||
| # Move focus between windows | ||||
| bind = $main_mod, c, layoutmsg, swapwithmaster master | ||||
| 
 | ||||
| # Switch workspaces with mainMod + [0-9] | ||||
| bind = $main_mod, 1, workspace, $ws01 | ||||
|  |  | |||
|  | @ -4,10 +4,31 @@ | |||
| ws_media="[08]" | ||||
| ws_voip="[09]" | ||||
| 
 | ||||
| _handler_check_ws_media_empty() { | ||||
| 	has_zero_windows=$(hyprctl workspaces -j | jq ".[] | select(.name == \"$ws_media\") | .windows == 0") | ||||
| ws_media_at="[ 0, 0 ]" | ||||
| 
 | ||||
| _handler_check_ws_media_empty() { | ||||
| 
 | ||||
| 	# split at ">>" and get the second part and take first part of that | ||||
| 	win_id=$(echo "$1" | cut -d'>' -f3 | cut -d',' -f1) | ||||
| 
 | ||||
| 	media_got_emptied="false" | ||||
| 
 | ||||
| 	is_on_media_ws=$(hyprctl clients -j | jq ".[] | select(.address == \"0x$win_id\") | .workspace.name == \"$ws_media\"") | ||||
| 	if [ "$is_on_media_ws" == "true" ]; then | ||||
| 		media_got_emptied="true" | ||||
| 	fi | ||||
| 
 | ||||
| 	was_on_media_ws=$(hyprctl clients -j | jq ".[] | select(.address == \"0x$win_id\") | .at == $ws_media_at") | ||||
| 	if [ "$was_on_media_ws" == "true" ]; then | ||||
| 		media_got_emptied="true" | ||||
| 	fi | ||||
| 
 | ||||
| 	has_zero_windows=$(hyprctl workspaces -j | jq ".[] | select(.name == \"$ws_media\") | .windows == 0") | ||||
| 	if [ "$has_zero_windows" == "true" ]; then | ||||
| 		media_got_emptied="true" | ||||
| 	fi | ||||
| 
 | ||||
| 	if [ "$media_got_emptied" == "true" ]; then | ||||
| 		hyprctl dispatch workspace "$ws_voip" | ||||
| 	fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -7,6 +7,7 @@ windowrulev2 = workspace $ws_focus, class:^(jetbrains-) | |||
| 
 | ||||
| windowrulev2 = workspace $ws_media, class:(Chromium) | ||||
| windowrulev2 = workspace $ws_media, class:(FreeTube) | ||||
| windowrulev2 = workspace $ws_media, class:(qutebrowser-kiosk) | ||||
| 
 | ||||
| windowrulev2 = workspace $ws_voip silent, class:(discord) | ||||
| windowrulev2 = workspace $ws_voip silent, class:(Element) | ||||
|  | @ -18,7 +19,10 @@ windowrulev2 = workspace $ws_msg silent, class:(Signal) | |||
| 
 | ||||
| ### Specific rules | ||||
| 
 | ||||
| #windowrulev2 = workspace $ws_steam silent,class:(steam) # Moves menues too :/ | ||||
| #windowrulev2 = noinitialfocus,class:(steam) # No focus on menues :/ | ||||
| #windowrulev2 = workspace $ws_steam silent, class:(steam) # Moves menues too :/ | ||||
| #windowrulev2 = noinitialfocus, class:(steam) # No focus on menues :/ | ||||
| 
 | ||||
| windowrulev2 = move 100%-300 100%-30, class:(steam), title:^(notificationtoasts) | ||||
| windowrulev2 = nofocus, class:(steam), title:^(notificationtoasts) | ||||
| 
 | ||||
| windowrulev2 = fullscreen, class:(FreeTube) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue