mirror of
				https://github.com/ItsDrike/dotfiles.git
				synced 2025-11-04 09:16:36 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			294 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			294 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
set -euo pipefail
 | 
						|
 | 
						|
serv="hypridle.service"
 | 
						|
 | 
						|
if systemctl --user is-active --quiet "$serv"; then
 | 
						|
  systemctl --user stop "$serv"
 | 
						|
  notify-send "Idle-Toggle" "Idle timeouts disabled"
 | 
						|
else
 | 
						|
  systemctl --user start "$serv"
 | 
						|
  notify-send "Idle-Toggle" "Idle timeouts enabled"
 | 
						|
fi
 |