Display the idle entry menu only in sway
This commit is contained in:
		
							parent
							
								
									fe34795f86
								
							
						
					
					
						commit
						fbaa9155bc
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -24,6 +24,8 @@ sxmo_type() { | ||||||
| 	sxmo_type.sh -s 200 "$@" # dunno why this is necessary but it sucks without | 	sxmo_type.sh -s 200 "$@" # dunno why this is necessary but it sucks without | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | wm="$(sxmo_wm.sh)" | ||||||
|  | 
 | ||||||
| programchoicesinit() { | programchoicesinit() { | ||||||
| 	XPROPOUT="$(sxmo_wm.sh focusedwindow)" | 	XPROPOUT="$(sxmo_wm.sh focusedwindow)" | ||||||
| 	WMCLASS="${1:-$(printf %s "$XPROPOUT" | grep app: | cut -d" " -f2- | tr '[:upper:]' '[:lower:]')}" | 	WMCLASS="${1:-$(printf %s "$XPROPOUT" | grep app: | cut -d" " -f2- | tr '[:upper:]' '[:lower:]')}" | ||||||
|  | @ -156,7 +158,7 @@ programchoicesinit() { | ||||||
| 				printf %b "Off → On" ||  printf %b "On → Off"; | 				printf %b "Off → On" ||  printf %b "On → Off"; | ||||||
| 				printf %b "^ 1 ^ sxmo_flashtoggle.sh" | 				printf %b "^ 1 ^ sxmo_flashtoggle.sh" | ||||||
| 			) | 			) | ||||||
| 			$icon_cfg Idle Config                ^ 1 ^ sxmo_idle.sh config | 			$([ "$wm" = sway ] && printf "$icon_cfg Idle Config                ^ 1 ^ sxmo_idle.sh config") | ||||||
| 			$icon_cfg Invert Colors              ^ 1 ^ xcalib -a -invert | 			$icon_cfg Invert Colors              ^ 1 ^ xcalib -a -invert | ||||||
| 			$icon_clk Change Timezone            ^ 1 ^ sxmo_timezonechange.sh | 			$icon_clk Change Timezone            ^ 1 ^ sxmo_timezonechange.sh | ||||||
| 			$icon_ror Autorotate $( | 			$icon_ror Autorotate $( | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue