From 51292e49bb8092134df6bb1ca586c23bcd2b1ddf Mon Sep 17 00:00:00 2001
From: davidovki <david@davidovski.xyz>
Date: Wed, 1 Mar 2023 00:15:29 +0000
Subject: Add better laptop support

---
 config/bspwm/bspwmrc              |  1 +
 config/cava/config                |  4 ++--
 config/gtk-3.0/bookmarks          |  1 +
 config/mpd/mpd.conf               |  8 --------
 config/picom/picom.conf           | 10 +++++-----
 config/polybar/config             |  2 +-
 config/rofi/colors-rofi-dark.rasi |  1 +
 config/sxhkd/sxhkdrc              |  8 ++++++++
 8 files changed, 19 insertions(+), 16 deletions(-)

(limited to 'config')

diff --git a/config/bspwm/bspwmrc b/config/bspwm/bspwmrc
index a9f1bb8..ccd9cc1 100755
--- a/config/bspwm/bspwmrc
+++ b/config/bspwm/bspwmrc
@@ -10,6 +10,7 @@ xsetroot -cursor_name left_ptr &
 xrdb ~/.Xdefaults
 
 pgrep -x sxhkd > /dev/null || sxhkd &
+pgrep -x picom > /dev/null || picom &
 pgrep -x xss-lock > /dev/null || xss-lock slock &
 pgrep -x bg.sh > /dev/null || $HOME/.scripts/bg.sh > /dev/null &
 
diff --git a/config/cava/config b/config/cava/config
index 9f8e2b8..2ddd926 100644
--- a/config/cava/config
+++ b/config/cava/config
@@ -58,8 +58,8 @@
 # For shmem 'source' will be /squeezelite-AA:BB:CC:DD:EE:FF where 'AA:BB:CC:DD:EE:FF' will be squeezelite's MAC address
 ; source = auto
 
-; method = alsa
-; source = hw:Loopback,1
+method = alsa
+ source = hw:Loopback,1
 
 ; method = fifo
 ; source = /tmp/mpd.fifo
diff --git a/config/gtk-3.0/bookmarks b/config/gtk-3.0/bookmarks
index d741357..3bdccb3 100644
--- a/config/gtk-3.0/bookmarks
+++ b/config/gtk-3.0/bookmarks
@@ -1,3 +1,4 @@
+file:///home/x/pics/screenshot
 file:///home/david/hd1/important
 file:///home/david/docs docs
 file:///home/david/pics pics
diff --git a/config/mpd/mpd.conf b/config/mpd/mpd.conf
index 679ebd1..b086d5e 100644
--- a/config/mpd/mpd.conf
+++ b/config/mpd/mpd.conf
@@ -13,14 +13,6 @@ audio_output {
 	max_clients	"0"
 }
 
-audio_output {
-	type		"httpd"
-	name		"HQ HTTP Stream"
-	encoder		"wave"		    # optional, vorbis or lame
-	port		"6681"
-	max_clients	"0"
-}
-
 audio_output {
 	type		"pulse"
 	name		"mpd"
diff --git a/config/picom/picom.conf b/config/picom/picom.conf
index 4407cc1..68d0f83 100644
--- a/config/picom/picom.conf
+++ b/config/picom/picom.conf
@@ -289,8 +289,8 @@ blur-background-exclude = [
 # `xrender` is the default one.
 #
 experimental-backends = true;
-#backend = "glx";
-backend = "xrender";
+backend = "glx";
+#backend = "xrender";
 #backend = "xr_glx_hybrid";
 
 
@@ -405,14 +405,14 @@ detect-client-leader = true
 # has actually changed. Potentially degrades the performance, but might fix some artifacts.
 # The opposing option is use-damage
 #
-no-use-damage = true
-use-damage = false
+# no-use-damage = false
+use-damage = true
 
 # Use X Sync fence to sync clients' draw calls, to make sure all draw 
 # calls are finished before picom starts drawing. Needed on nvidia-drivers 
 # with GLX backend for some users.
 #
-#xrender-sync-fence = true
+xrender-sync-fence = true
 
 # GLX backend: Use specified GLSL fragment shader for rendering window contents. 
 # See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl` 
diff --git a/config/polybar/config b/config/polybar/config
index ec82e1e..6267651 100644
--- a/config/polybar/config
+++ b/config/polybar/config
@@ -43,7 +43,7 @@ inherit                   = bar/base
 width                     = 100%
 offset-x                  = 0 
 modules-left              = workspaces xwindow
-modules-right		      = mpd temperature memory wlan battery pulseaudio microphone time
+modules-right		      = mpd temperature memory network battery pulseaudio microphone time
 tray-position		      = right
 background		          = ${color.bga}
 border-size		          = 0
diff --git a/config/rofi/colors-rofi-dark.rasi b/config/rofi/colors-rofi-dark.rasi
index 0be691d..180889d 100644
--- a/config/rofi/colors-rofi-dark.rasi
+++ b/config/rofi/colors-rofi-dark.rasi
@@ -21,6 +21,7 @@
     selected-urgent-foreground: @background2;
 
     text-color:			@foreground;
+    border-color:       @foreground;
 
     background-color: #00000000;
     background: #191919;
diff --git a/config/sxhkd/sxhkdrc b/config/sxhkd/sxhkdrc
index 17067d0..751e118 100644
--- a/config/sxhkd/sxhkdrc
+++ b/config/sxhkd/sxhkdrc
@@ -17,6 +17,14 @@ super + ctrl + alt + f
 {XF86AudioMute}
 	amixer -D pulse set Master 1+ toggle
 
+{_, super} + XF86MonBrightnessDown
+    xbacklight - {10,1}
+{_, super} + XF86MonBrightnessUp
+    xbacklight + {10,1}
+    
+
+
+
 super + r
 	rofi -show drun -show-icons  
 
-- 
cgit v1.2.1