Using alacritty for terminal stuff

This commit is contained in:
Chris Cochrun 2020-12-18 06:45:29 -06:00
parent 5b2c7ffb72
commit 29a0dd3572
4 changed files with 8 additions and 13 deletions

View file

@ -129,7 +129,7 @@
(awful.key [modkey] "b" (fn [] (awful.spawn "bwmenu")) (awful.key [modkey] "b" (fn [] (awful.spawn "bwmenu"))
{:description "launch rofi bitwarden selector" :group "launcher"}) {:description "launch rofi bitwarden selector" :group "launcher"})
;; audio ;; 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"}) {:description "launch pulsemixer" :group "audio"})
(awful.key [] "XF86AudioRaiseVolume" (fn [] (awful.spawn "pactl set-sink-volume @DEFAULT_SINK@ +5%") (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")) (awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))

View file

@ -51,19 +51,15 @@
:properties { :properties {
:floating true :floating true
:raise true :raise true
:height (dpi 900) ;; :height (dpi 900)
:width (dpi 1500) ;; :width (dpi 1500)
:placement (+ awful.placement.no_offscreen awful.placement.centered) :placement (+ awful.placement.no_offscreen awful.placement.centered)
} }
} }
;; Pulsemixer center and smaller ;; Pulsemixer center and smaller
{ {
:rule_any { :rule_any {
:class [ :instance [
"pulsemixer"
"pulsemixer,Alacritty"
]
:name [
"pulsemixer" "pulsemixer"
] ]
} }
@ -71,8 +67,7 @@
:floating true :floating true
:raise true :raise true
:ontop true :ontop true
;; :height (dpi 350) :screen awful.screen.preferred
;; :width (dpi 700)
:placement (+ awful.placement.no_offscreen awful.placement.centered) :placement (+ awful.placement.no_offscreen awful.placement.centered)
} }
} }

View file

@ -150,7 +150,7 @@ fade-exclude = [
# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0) # Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0)
# inactive-opacity = 1 # inactive-opacity = 1
inactive-opacity = 0.5; inactive-opacity = 0.75;
# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default) # Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
# frame-opacity = 1.0 # frame-opacity = 1.0

View file

@ -42,7 +42,7 @@ target="$(abspath "$1")"
count="$(listfiles | grep -m 1 -ZznF "$target" | cut -d: -f1)" count="$(listfiles | grep -m 1 -ZznF "$target" | cut -d: -f1)"
if [ -n "$count" ]; then if [ -n "$count" ]; then
listfiles | xargs -0 sxiv -n "$count" -- listfiles | xargs -0 sxiv -g 1500x900 -n "$count" --
else else
sxiv -- "$@" # fallback sxiv -g 1500x900 -- "$@" # fallback
fi fi