mirror of
				https://github.com/alrayyes/dwm.git
				synced 2025-08-07 11:11:02 +00:00 
			
		
		
		
	new lock script
This commit is contained in:
		
					parent
					
						
							
								cf44946dfd
							
						
					
				
			
			
				commit
				
					
						72a40564c0
					
				
			
		
					 2 changed files with 10 additions and 9 deletions
				
			
		
							
								
								
									
										6
									
								
								PKGBUILD
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								PKGBUILD
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -9,8 +9,8 @@ url="http://dwm.suckless.org"
 | 
			
		|||
arch=('i686' 'x86_64')
 | 
			
		||||
license=('MIT')
 | 
			
		||||
options=(zipman)
 | 
			
		||||
depends=('libx11' 'libxinerama' 'libxft' 'freetype2' 'st' 'dmenu' 'nerd-fonts-source-code-pro' 'xautolock' 'xss-lock' 'xbindkeys' 'compton' 'feh' 'unclutter' 'redshift' 'dunst' 'slstatus-git' 'spotify' 'iceweasel' 'tmux' 'scrot' 'pulseaudio' 'xorg-xbacklight' 'yubikey-oath-dmenu' 'pass' 'menu-calc' 'xdotool')
 | 
			
		||||
optdepends=('i3lock' 'i3lock-fancy-multimonitor-git')
 | 
			
		||||
depends=('libx11' 'libxinerama' 'libxft' 'freetype2' 'st' 'dmenu' 'nerd-fonts-source-code-pro' 'xautolock' 'xss-lock' 'xbindkeys' 'compton' 'feh' 'unclutter' 'redshift' 'dunst' 'slstatus-git' 'spotify' 'iceweasel' 'tmux' 'scrot' 'pulseaudio' 'xorg-xbacklight' 'yubikey-oath-dmenu' 'pass' 'menu-calc' 'xdotool' 'i3lock')
 | 
			
		||||
optdepends=('corrupter')
 | 
			
		||||
install=dwm.install
 | 
			
		||||
 | 
			
		||||
_patches=(
 | 
			
		||||
| 
						 | 
				
			
			@ -38,7 +38,7 @@ source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz
 | 
			
		|||
md5sums=('9929845ccdec4d2cc191f16210dd7f3d'
 | 
			
		||||
         'a653a6835f12bf99a2ec36f3e261c8be'
 | 
			
		||||
         '939f403a71b6e85261d09fc3412269ee'
 | 
			
		||||
         '8b2b6c96dbb9e8968a4c52aca2985ee4'
 | 
			
		||||
         '10bd3378b4b4aa7a2e4ed8685cea1be6'
 | 
			
		||||
         '31a7569d7f3d43846f59e854ec5d1da0'
 | 
			
		||||
         'fbb786263f2d714b18368ff64779d669'
 | 
			
		||||
         'c75af619c04cfae7b9740ec140d1dc6c'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										13
									
								
								lock
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								lock
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,10 +1,11 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
if [ -e /usr/bin/i3lock-fancy ]
 | 
			
		||||
then
 | 
			
		||||
    i3lock-fancy -p -n
 | 
			
		||||
elif [ -e /usr/bin/i3lock ]
 | 
			
		||||
then
 | 
			
		||||
    i3lock -e -b -f -i ~/.cache/lock.png
 | 
			
		||||
NUMBER_OF_SCREENS="$(xrandr | grep -c '\*')"
 | 
			
		||||
 | 
			
		||||
if [ "$NUMBER_OF_SCREENS" -gt 1 ]
 | 
			
		||||
then
 | 
			
		||||
    scrot "lock.png" -e 'mv $f ~/.cache/'
 | 
			
		||||
    corrupter ~/.cache/lock.png ~/.cache/lock.png
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
i3lock -e -b -f -i ~/.cache/lock.png
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue