alot of random crap
This commit is contained in:
		
							parent
							
								
									4f4bf30170
								
							
						
					
					
						commit
						e75be2bdfa
					
				
					 9 changed files with 34 additions and 38 deletions
				
			
		| 
						 | 
				
			
			@ -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 [])))
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										17
									
								
								picom.conf
									
										
									
									
									
								
							
							
						
						
									
										17
									
								
								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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
| 
						 | 
				
			
			@ -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}')
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,6 +10,8 @@ list_passwords() {
 | 
			
		|||
    rbw list
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
passwords=$(rbw list)
 | 
			
		||||
 | 
			
		||||
prompt='search for passwords...'
 | 
			
		||||
SECRET=$(list_passwords | rofi -i -p="${prompt}" -dmenu)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue