Using alacritty for terminal stuff
This commit is contained in:
		
							parent
							
								
									5b2c7ffb72
								
							
						
					
					
						commit
						29a0dd3572
					
				
					 4 changed files with 8 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -129,7 +129,7 @@
 | 
			
		|||
                     (awful.key [modkey] "b" (fn [] (awful.spawn "bwmenu"))
 | 
			
		||||
                                {:description "launch rofi bitwarden selector" :group "launcher"})
 | 
			
		||||
                     ;; audio
 | 
			
		||||
                     (awful.key [modkey] "a" (fn [] (awful.spawn "urxvt -b 80 -g 80x14 --class pulsemixer -e pulsemixer"))
 | 
			
		||||
                     (awful.key [modkey] "a" (fn [] (awful.spawn "alacritty -d 80 14 --class pulsemixer -e pulsemixer"))
 | 
			
		||||
                                {:description "launch pulsemixer" :group "audio"})
 | 
			
		||||
                     (awful.key [] "XF86AudioRaiseVolume" (fn [] (awful.spawn "pactl set-sink-volume @DEFAULT_SINK@ +5%")
 | 
			
		||||
                                                              (awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -51,19 +51,15 @@
 | 
			
		|||
               :properties {
 | 
			
		||||
                            :floating true
 | 
			
		||||
                            :raise true
 | 
			
		||||
                            :height (dpi 900)
 | 
			
		||||
                            :width (dpi 1500)
 | 
			
		||||
                            ;; :height (dpi 900)
 | 
			
		||||
                            ;; :width (dpi 1500)
 | 
			
		||||
                            :placement (+ awful.placement.no_offscreen awful.placement.centered)
 | 
			
		||||
                            }
 | 
			
		||||
               }
 | 
			
		||||
              ;; Pulsemixer center and smaller
 | 
			
		||||
              {
 | 
			
		||||
               :rule_any {
 | 
			
		||||
                          :class [
 | 
			
		||||
                                  "pulsemixer"
 | 
			
		||||
                                  "pulsemixer,Alacritty"
 | 
			
		||||
                                  ]
 | 
			
		||||
                          :name [
 | 
			
		||||
                          :instance [
 | 
			
		||||
                                  "pulsemixer"
 | 
			
		||||
                                  ]
 | 
			
		||||
                          }
 | 
			
		||||
| 
						 | 
				
			
			@ -71,8 +67,7 @@
 | 
			
		|||
                            :floating true
 | 
			
		||||
                            :raise true
 | 
			
		||||
                            :ontop true
 | 
			
		||||
                            ;; :height (dpi 350)
 | 
			
		||||
                            ;; :width (dpi 700)
 | 
			
		||||
                            :screen awful.screen.preferred
 | 
			
		||||
                            :placement (+ awful.placement.no_offscreen awful.placement.centered)
 | 
			
		||||
                            }
 | 
			
		||||
               }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -150,7 +150,7 @@ fade-exclude = [
 | 
			
		|||
 | 
			
		||||
# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0)
 | 
			
		||||
# inactive-opacity = 1
 | 
			
		||||
inactive-opacity = 0.5;
 | 
			
		||||
inactive-opacity = 0.75;
 | 
			
		||||
 | 
			
		||||
# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
 | 
			
		||||
# frame-opacity = 1.0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -42,7 +42,7 @@ target="$(abspath "$1")"
 | 
			
		|||
count="$(listfiles | grep -m 1 -ZznF "$target" | cut -d: -f1)"
 | 
			
		||||
 | 
			
		||||
if [ -n "$count" ]; then
 | 
			
		||||
    listfiles | xargs -0 sxiv -n "$count" --
 | 
			
		||||
    listfiles | xargs -0 sxiv -g 1500x900 -n "$count" --
 | 
			
		||||
else
 | 
			
		||||
    sxiv -- "$@" # fallback
 | 
			
		||||
    sxiv -g 1500x900 -- "$@" # fallback
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue