mirror of
				https://git.davidovski.xyz/dot.git
				synced 2024-08-15 00:43:28 +00:00 
			
		
		
		
	removed bash and added mkshrc
This commit is contained in:
		
							parent
							
								
									1406e81f40
								
							
						
					
					
						commit
						381aaffe4e
					
				
					 14 changed files with 260 additions and 17 deletions
				
			
		|  | @ -1,2 +1,3 @@ | |||
| #!/bin/sh | ||||
| feh --force-aliasing --bg-fill ~/.config/bg | ||||
| feh --force-aliasing --bg-tile ~/.config/dither.png | ||||
| #feh --force-aliasing --bg-fill ~/.config/bg | ||||
|  |  | |||
|  | @ -1,3 +1,3 @@ | |||
| #!/bin/sh | ||||
| MAIN_DP=DP-2;   | ||||
| MAIN_DP=DP-0;   | ||||
| v=$(xrandr --current --verbose | grep "Brightness" | cut -f2 -d " " | tr '\n' '*' | rev | cut -c 2- | rev | sed -e "s/$/==1/" | bc -l | grep -q 0 && echo 1 || echo 0); xrandr | grep " connected" | cut -f1 -d " " | while read -r line; do echo $line | grep -q $MAIN_DP && : || xrandr --output $line --brightness $v; done | ||||
|  |  | |||
|  | @ -42,9 +42,9 @@ _fzf_bash_completion_flatten_subshells() { | |||
|                 printf '%s\n' "$line$buffer" | ||||
|                 buffer= | ||||
|             fi | ||||
|         done < <(tac) | ||||
|         done < <(cat) | ||||
|         printf '%s\n' "$buffer" | ||||
|     ) | tac | ||||
|     ) | cat | ||||
| } | ||||
| 
 | ||||
| _fzf_bash_completion_find_matching_bracket() { | ||||
|  |  | |||
|  | @ -1,5 +1,5 @@ | |||
| #!/bin/bash | ||||
| MAIN_DP=DP-2;   | ||||
| MAIN_DP=DP-0;   | ||||
| 
 | ||||
| v=$1 | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										10
									
								
								scripts/links-launcher
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										10
									
								
								scripts/links-launcher
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,10 @@ | |||
| #!/bin/sh | ||||
| 
 | ||||
| startpage=${1:-https://search.davidovski.xyz/} | ||||
| 
 | ||||
| bin="$(which links || which xlinks)" | ||||
| 
 | ||||
| [ "${#DISPLAY}" = "0" ] || opts="-g -html-g-text-color 0xf58f44 -html-g-background-color 0x191919 -font /home/david/.fonts/ttf-mononoki/mononoki-Regular.ttf" | ||||
| 
 | ||||
| $bin $opts $startpage  | ||||
| 
 | ||||
|  | @ -1,2 +1,3 @@ | |||
| #!/bin/sh | ||||
| i3lock-fancy -p -t '' | ||||
| #i3lock-fancy -p -t '' | ||||
| slock | ||||
|  |  | |||
|  | @ -1,2 +1,3 @@ | |||
| #!/bin/sh | ||||
| 
 | ||||
| printf "suspend\nreboot\npoweroff\nhibernate" | rofi -dmenu -p "systemctl" | xargs -r systemctl | ||||
|  |  | |||
							
								
								
									
										19
									
								
								scripts/record_window.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										19
									
								
								scripts/record_window.sh
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| #!/bin/sh | ||||
| info=/tmp/wminfo | ||||
| 
 | ||||
| xwininfo > /tmp/wminfo | ||||
| 
 | ||||
| geom=$(cat $info | grep "geometry" | cut -d' ' -f4)  | ||||
| 
 | ||||
| width=$(cat $info | grep Width | cut -d' ' -f4) | ||||
| height=$(cat $info | grep Height | cut -d' ' -f4) | ||||
| 
 | ||||
| size="${width}x${height}" | ||||
| position=+$(echo $geom | cut -d'+' -f2- | sed "s/+/,/g") | ||||
| 
 | ||||
| filename=$(date +"$HOME/pics/screenshot/%F_%T.mp4") | ||||
| 
 | ||||
| echo $size and $position | ||||
| ffmpeg -y -f x11grab -video_size $size -i $position $filename | ||||
| 
 | ||||
| rm $info | ||||
|  | @ -1,2 +1,2 @@ | |||
| #!/bin/bash | ||||
| maim -su /dev/stdout |  tee >(xclip -selection clipboard -t image/png) > $(date +"$HOME/pics/screenshot/%F_%T.png") | ||||
| maim -su /dev/stdout |  tee $(date +"$HOME/pics/screenshot/%F_%T.png") | xclip -selection clipboard -t image/png | ||||
|  |  | |||
|  | @ -9,10 +9,10 @@ tablet_ratio = (lambda s: float(s[0]) / float(s[1]))(sys.argv[4].split(":")) if | |||
| 
 | ||||
| #Layout of screens: (x, y, w, h) | ||||
| screens = [ | ||||
| 	(3840, 0, 1080, 1920), | ||||
| 	(1280, 0, 2560, 1440), | ||||
| 	(4920, 0, 1080, 1920), | ||||
| 	(0, 0, 1280, 1024), | ||||
| 	(1280, 0, 2560, 1440), | ||||
| 	(3840, 0, 1080, 1920), | ||||
| 	(4920, 0, 1080, 1920), | ||||
| ] | ||||
| 
 | ||||
| #TODO find this with xrandr | ||||
|  |  | |||
|  | @ -1,14 +1,17 @@ | |||
| #!/bin/sh | ||||
| 
 | ||||
| 
 | ||||
| SEARCH_ENGINE="https://search.brave.com/search?q=" | ||||
| SEARCH_HISTORY=/tmp/.search_history | ||||
| browser="links-launcher" | ||||
| SEARCH_ENGINE="https://librex.beparanoid.de/search.php?q=" | ||||
| SEARCH_HISTORY=$HOME/.local/share/search_history | ||||
| 
 | ||||
| SEARCH=$(cat $SEARCH_HISTORY | dmenu -p "search") | ||||
| 
 | ||||
| touch $SEARCH_HISTORY | ||||
| echo "$SEARCH" >> $SEARCH_HISTORY | ||||
| 
 | ||||
| cat <<< "$SEARCH | ||||
| $(cat $SEARCH_HISTORY)" > $SEARCH_HISTORY | ||||
| query=$(echo $SEARCH | sed 's/ /+/g') | ||||
| 
 | ||||
| brave "$SEARCH_ENGINE$SEARCH" | ||||
| echo $query | grep -q '(?=^.{5,254}$)(^(?:(?!\d+\.)[a-zA-Z0-9_\-]{1,63}\.?)+(?:[a-zA-Z]{2,})$)' && { | ||||
|     links-launcher "$query" | ||||
| } ||  { | ||||
|     links-launcher "$SEARCH_ENGINE$query" | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue