Fix for reloading and restarting the configuration.
In Sway, you say "command" instead of "run_command" Additionally, take out the restart since that's not available in Sway.
This commit is contained in:
		
							
								
								
									
										14
									
								
								i38.sh
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								i38.sh
									
									
									
									
									
								
							@@ -625,10 +625,16 @@ bindsym g exec ${i3Path}/scripts/game_controler.sh -s, mode "default"
 | 
			
		||||
bindsym apostrophe exec --no-startup-id ${i3Path}/scripts/window_list.sh, mode "default"
 | 
			
		||||
# Restart orca
 | 
			
		||||
bindsym Shift+o exec $(command -v orca) --replace, mode "default"
 | 
			
		||||
# reload the configuration file
 | 
			
		||||
bindsym Control+semicolon exec bash -c '$i3msg -t run_command reload && spd-say -P important -Cw "I38 Configuration reloaded."', mode "default"
 | 
			
		||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
 | 
			
		||||
bindsym Control+Shift+semicolon exec $i3msg -t run_command restart && spd-say -P important -Cw "I3 restarted.", mode "default"
 | 
			
		||||
$(if [[ $usingSway -eq 0 ]]; then
 | 
			
		||||
    echo "# reload the configuration file"
 | 
			
		||||
    echo "bindsym Control+semicolon exec bash -c '$i3msg -t command reload && spd-say -P important -Cw "I38 Configuration reloaded."', mode "default""
 | 
			
		||||
 | 
			
		||||
else
 | 
			
		||||
        echo "# reload the configuration file"
 | 
			
		||||
        echo "bindsym Control+semicolon exec bash -c '$i3msg -t run_command reload && spd-say -P important -Cw "I38 Configuration reloaded."', mode "default""
 | 
			
		||||
        echo "# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)"
 | 
			
		||||
        echo "bindsym Control+Shift+semicolon exec $i3msg -t run_command restart && spd-say -P important -Cw "I3 restarted.", mode "default""
 | 
			
		||||
fi)
 | 
			
		||||
# Run dialog with exclamation 
 | 
			
		||||
bindsym Shift+exclam exec ${i3Path}/scripts/run_dialog.sh, mode "default"
 | 
			
		||||
# exit i3 (logs you out of your X session)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user