Fixed system notifications
This commit is contained in:
		
							parent
							
								
									312d3521d6
								
							
						
					
					
						commit
						85cc441958
					
				
					 2 changed files with 5 additions and 5 deletions
				
			
		|  | @ -8,12 +8,12 @@ pkill swayidle | |||
| swayidle -w \ | ||||
|     timeout 300 \ | ||||
|         "~/.scripts/wander.sh" \ | ||||
|         resume "~/.scripts/wander.sh" \ | ||||
|         resume 'brightnessctl -r' \ | ||||
|     timeout 600 \ | ||||
|         'swaymsg "output * dpms off"' \ | ||||
|         resume 'swaymsg "output * dpms on"' \ | ||||
|     timeout 1200 \ | ||||
|         'systemctl suspend' \ | ||||
|     before-sleep 'swaymsg "output * dpms on"; swaylock -f --screenshots --clock --indicator --effect-blur 5x5' | ||||
|     before-sleep 'swaymsg "output * dpms on"; swaylock' | ||||
|     # Screen needs to be turned back on or you will get a black screen after waking up again.  | ||||
| 
 | ||||
|  |  | |||
|  | @ -18,7 +18,7 @@ while getopts ":bv" options; do | |||
| 			value=$( brightnessctl | grep -o "[0-9]*%" ) | ||||
| 			title="Brightness: ${value}" | ||||
|             timeout=2000 | ||||
|             class='top-center' | ||||
|             category='sysinfo' | ||||
| 			;; | ||||
| 		v) | ||||
|             # Get volume | ||||
|  | @ -32,7 +32,7 @@ while getopts ":bv" options; do | |||
| 
 | ||||
| 			title="Volume: ${value:-'0%'}" | ||||
|             timeout=2000 | ||||
|             class='top-center' | ||||
|             category='sysinfo' | ||||
| 			;; | ||||
| 		*)	 | ||||
|             panic | ||||
|  | @ -60,7 +60,7 @@ fi | |||
| # Send message | ||||
| notify-send "${title}" "${message}" \ | ||||
|     -t "${timeout:=5000}" \ | ||||
|     -c "${class:=''}" \ | ||||
|     -c "${category:=''}" \ | ||||
|  	-h int:value:"${width:=0}" \ | ||||
| 	-h string:x-canonical-private-synchronous:byMe # Replace if previous still exists | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue