From e75be2bdfa464c67fd413a20418107a4a1a6a4f7 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 25 Aug 2021 05:13:34 -0500 Subject: [PATCH] alot of random crap --- awesome/init.fnl | 22 ++++++++++++++-------- fish/config.fish | 8 ++++++++ picom.conf | 17 ++++++----------- qutebrowser/autoconfig.yml | 2 ++ scripts/cpu-plasma.10s.sh | 7 ------- scripts/mem | 2 +- scripts/mem-plasma.3s.sh | 10 ---------- scripts/muunread-plasma.2s.sh | 2 +- scripts/rofi-rbw | 2 ++ 9 files changed, 34 insertions(+), 38 deletions(-) delete mode 100755 scripts/cpu-plasma.10s.sh delete mode 100755 scripts/mem-plasma.3s.sh diff --git a/awesome/init.fnl b/awesome/init.fnl index 5789a9b..de3b799 100644 --- a/awesome/init.fnl +++ b/awesome/init.fnl @@ -79,7 +79,7 @@ (if (= "syl\n" stdout) (global laptop true) (global laptop false)))) -(local laptop true) +(local laptop false) ;; Table of layouts to cover with awful.layout.inc, order matters. (set awful.layout.layouts [ @@ -239,7 +239,10 @@ :id "icon_role" :widget wibox.widget.imagebox } - :margins 6 + :left (dpi 10) + :right (dpi 10) + :top (dpi 10) + :bottom (dpi 10) :widget wibox.container.margin :layout wibox.layout.align.horizontal } @@ -259,6 +262,9 @@ } :widget wibox.container.margin :left (dpi 10) +:right (dpi 1) +:top (dpi 5) +:bottom (dpi 5) } })) @@ -481,8 +487,8 @@ (set s.mysystray { 1 { 1 { 1 (wibox.widget.systray) :widget wibox.container.margin :right (dpi 2) - :top (dpi 2) - :bottom (dpi 2) + :top (dpi 5) + :bottom (dpi 5) :left (dpi 2)} :widget wibox.container.background :shape gears.shape.rounded_bar @@ -507,14 +513,14 @@ }) (local yoffset (dpi 45)) ;; variables to be used for placing the wibox - (local xoffset (dpi 18)) + (local xoffset (dpi 28)) ;; Create the wibox (set s.mywibox (wibox {;; since we are using a wibox we have a lot we need to set ;; as opposed to what we normally need to do with a wibar :position "bottom" :x (+ s.geometry.x xoffset) :y (- s.geometry.height yoffset) - :height (dpi 30) + :height (dpi 33) :width (- s.geometry.width (* xoffset 2)) :ontop false :stretch false @@ -522,7 +528,7 @@ :shape gears.shape.rounded_bar :bg beautiful.bg_normal :fg beautiful.fg_normal - :opacity 0.95 + :opacity 0.90 :screen s })) (: s.mywibox :struts { :bottom (dpi 40) }) @@ -643,7 +649,7 @@ ;; Prevent clients from being unreachable after screen count changes. (awful.placement.no_offscreen c)) ;; MPV wasn't centering right - ;; (when (= c.class "mpv") (awful.placement.centered c)) + (when (= c.class "mpv") (awful.placement.centered c)) (awful.client.focus.byidx 1) (: c :activate []))) diff --git a/fish/config.fish b/fish/config.fish index 459dfe8..5891d7f 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -4,6 +4,7 @@ set -U fish_user_paths $HOME/.local/bin $HOME/scripts $HOME/.doom-emacs/bin $HOM set TERM "xterm-256color" set EDITOR "emacsclient -c -a" set VISUAL "emacsclient -c -a emacs" +set QT_QPA_PLATFORMTHEME "qt5ct" set KWIN_DRM_USE_EGL_STREAMS 1 set -Ux ANDROID_SDK_ROOT /opt/android-sdk set -Ux JAVA_HOME /usr/lib/jvm/default @@ -217,4 +218,11 @@ if status is-login end end +### Start plasma wayland +# if status is-login +# if test -z "$DISPLAY" -a "$XDG_VTNR" = 1 +# exec dbus-run-session startplasma-wayland +# end +# end + fm6000 -r -c blue diff --git a/picom.conf b/picom.conf index 4a21069..08bd010 100644 --- a/picom.conf +++ b/picom.conf @@ -21,16 +21,16 @@ round-borders-exclude = [ shadow = true; # The blur radius for shadows, in pixels. (defaults to 12) -shadow-radius = 48; +shadow-radius = 38; # The opacity of shadows. (0.0 - 1.0, defaults to 0.75) shadow-opacity = .99; # The left offset for shadows, in pixels. (defaults to -15) -shadow-offset-x = -30; +shadow-offset-x = -20; # The top offset for shadows, in pixels. (defaults to -15) -shadow-offset-y = -30; +shadow-offset-y = -20; # Avoid drawing shadows on dock/panel windows. This option is deprecated, # you should use the *wintypes* option in your config file instead. @@ -164,10 +164,10 @@ focus-exclude = [ # opacity-rule = [] opacity-rule = [ "80:class_g = 'Bar'", # lemonbar + "80:class_g = 'Polybar'", + "90:class_g = 'awesome'", "100:class_g = 'slop'", # maim "100:class_g = 'XTerm'", - # "100:class_g = 'URxvt'", - # "100:class_g = 'kitty'", "100:class_g = 'Alacritty'", "100:class_g = 'qutebrowser'", "100:class_g = 'showfoto'", @@ -175,10 +175,6 @@ opacity-rule = [ "100:class_g = 'kdenlive'", "100:class_g = 'resolve'", "100:class_g = 'OpenLP'", - "80:class_g = 'Polybar'", - "90:class_g = 'awesome'", - "100:class_g = 'code-oss'", - "100:class_g = 'Meld'", "100:class_g = 'firefox'", "100:class_g = 'Gimp-2.10'", "100:class_g = 'dolphin'", @@ -190,7 +186,6 @@ opacity-rule = [ "0:_NET_WM_STATE@[2]:32a *= '_NET_WM_STATE_HIDDEN'", "0:_NET_WM_STATE@[3]:32a *= '_NET_WM_STATE_HIDDEN'", "0:_NET_WM_STATE@[4]:32a *= '_NET_WM_STATE_HIDDEN'", - "100:class_g = 'Thunderbird'" ]; @@ -319,7 +314,7 @@ use-ewmh-active-win = true; # Unredirect all windows if a full-screen opaque window is detected, # to maximize performance for full-screen windows. Known to cause flickering # when redirecting/unredirecting windows. paint-on-overlay may make the flickering less obvious. -unredir-if-possible = true; +unredir-if-possible = false; # Delay before unredirecting the window, in milliseconds. Defaults to 0. # unredir-if-possible-delay = 0 diff --git a/qutebrowser/autoconfig.yml b/qutebrowser/autoconfig.yml index a5f7ed8..94868d6 100644 --- a/qutebrowser/autoconfig.yml +++ b/qutebrowser/autoconfig.yml @@ -19,5 +19,7 @@ settings: https://www.g2a.com: false https://www.reddit.com: false https://www.websitebuilderexpert.com: false + content.register_protocol_handler: + https://outlook.office.com?mailtouri=%25s: false tabs.show: global: always diff --git a/scripts/cpu-plasma.10s.sh b/scripts/cpu-plasma.10s.sh deleted file mode 100755 index 4a8712d..0000000 --- a/scripts/cpu-plasma.10s.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -# awk '{u=$2+$4; t=$2+$4+$5; if (NR==1){u1=u; t1=t;} else print ($2+$4-u1) * 100 / (t-t1) "%"; }' \ - # <(rg 'cpu ' /proc/stat) <(sleep 1;rg 'cpu ' /proc/stat) -# echo 100 - $(mpstat | rg all | cut -d \ -f43) | bc -cpu="$(mpstat 1 1 | rg Average | awk '{print $3+$4+$5}' | sed 's/\(.*\)/\1%/g')" - -echo " $cpu | color=#5af78e" diff --git a/scripts/mem b/scripts/mem index 4db3e58..0ca3fc2 100755 --- a/scripts/mem +++ b/scripts/mem @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Get the percentage of used memory and print it read used total <<< $(free -m | awk '/Mem/{printf $2" "$3}') diff --git a/scripts/mem-plasma.3s.sh b/scripts/mem-plasma.3s.sh deleted file mode 100755 index 1be2eca..0000000 --- a/scripts/mem-plasma.3s.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -# Get the percentage of used memory and print it -read used total <<< $(free -m | awk '/Mem/{printf $2" "$3}') - -percent=$(bc -l <<< "100 * $total / $used") - -mem=$(awk -v u=$used -v t=$total -v p=$percent 'BEGIN {printf "%sMi/%sMi %.1f% ", t, u, p}'| awk '{printf $2}') - - -echo " $mem | color=#ff9f43" diff --git a/scripts/muunread-plasma.2s.sh b/scripts/muunread-plasma.2s.sh index 727527e..8f0c768 100755 --- a/scripts/muunread-plasma.2s.sh +++ b/scripts/muunread-plasma.2s.sh @@ -1,4 +1,4 @@ #!/bin/sh muunread="$(mu find flag:unread AND NOT flag:trashed AND NOT maildir:\"/outlook/Junk\" AND NOT maildir:\"/office/Junk Email\" AND NOT maildir:\"/outlook/Deleted\" AND NOT maildir:\"/office/Deleted Items\" | wc -l)" -echo " $muunread | color=#f3f99d" +echo " $muunread | color=#f3f99d font='VictorMono Nerd Font' size=11" diff --git a/scripts/rofi-rbw b/scripts/rofi-rbw index 3aa5b81..2cc77ad 100755 --- a/scripts/rofi-rbw +++ b/scripts/rofi-rbw @@ -10,6 +10,8 @@ list_passwords() { rbw list } +passwords=$(rbw list) + prompt='search for passwords...' SECRET=$(list_passwords | rofi -i -p="${prompt}" -dmenu)