Merge branch 'master' of gitlab.com:chriscochrun/dotfiles
This commit is contained in:
commit
7a6190e415
|
@ -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
|
||||
|
@ -508,14 +514,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
|
||||
|
@ -644,7 +650,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
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
# 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"
|
||||
echo " $cpu | color=#5af78e font='VictorMono Nerd Font' size=11"
|
7
scripts/laptopdet
Executable file
7
scripts/laptopdet
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/fish
|
||||
#detect whether running on laptop or not
|
||||
if hostname = "syl"
|
||||
echo true
|
||||
else
|
||||
echo false
|
||||
|
|
@ -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,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}')
|
||||
|
||||
|
@ -7,4 +7,4 @@ 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"
|
||||
echo " $mem | color=#ff9f43 font='VictorMono Nerd Font' size=11"
|
|
@ -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"
|
||||
|
|
|
@ -13,6 +13,8 @@ list_passwords() {
|
|||
rbw list
|
||||
}
|
||||
|
||||
passwords=$(rbw list)
|
||||
|
||||
prompt='search for passwords...'
|
||||
SECRET=$(list_passwords | rofi -i -p="${prompt}" -dmenu)
|
||||
|
||||
|
|
Loading…
Reference in a new issue