From 29a0dd35722aeb46b48b3cc27682b06ef6dc4bb4 Mon Sep 17 00:00:00 2001
From: Chris Cochrun <chris@tfcconnection.org>
Date: Fri, 18 Dec 2020 06:45:29 -0600
Subject: [PATCH] Using alacritty for terminal stuff

---
 awesome/keybindings.fnl |  2 +-
 awesome/rules.fnl       | 13 ++++---------
 picom.conf              |  2 +-
 scripts/rifle-sxiv      |  4 ++--
 4 files changed, 8 insertions(+), 13 deletions(-)

diff --git a/awesome/keybindings.fnl b/awesome/keybindings.fnl
index 0863f22..d389c39 100644
--- a/awesome/keybindings.fnl
+++ b/awesome/keybindings.fnl
@@ -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"))
diff --git a/awesome/rules.fnl b/awesome/rules.fnl
index 3f06147..8b17ddc 100644
--- a/awesome/rules.fnl
+++ b/awesome/rules.fnl
@@ -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)
                             }
                }
diff --git a/picom.conf b/picom.conf
index 90c9827..55a2e01 100644
--- a/picom.conf
+++ b/picom.conf
@@ -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
diff --git a/scripts/rifle-sxiv b/scripts/rifle-sxiv
index 0bdd892..b64da73 100755
--- a/scripts/rifle-sxiv
+++ b/scripts/rifle-sxiv
@@ -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