Merge branch 'master' of gitlab.com:chriscochrun/dotfiles

This commit is contained in:
Chris Cochrun 2021-10-11 09:20:06 -05:00
commit 8e179c3910
13 changed files with 48 additions and 12 deletions

View file

@ -318,7 +318,7 @@ colors:
# #
# Window opacity as a floating point number from `0.0` to `1.0`. # Window opacity as a floating point number from `0.0` to `1.0`.
# The value `0.0` is completely transparent and `1.0` is opaque. # The value `0.0` is completely transparent and `1.0` is opaque.
background_opacity: 1 background_opacity: 0.75
#selection: #selection:
#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"

View file

@ -653,6 +653,7 @@
;; MPV wasn't centering right ;; MPV wasn't centering right
(when (= c.class "mpv") (awful.placement.centered c)) (when (= c.class "mpv") (awful.placement.centered c))
(when (= c.class "imv") (awful.placement.centered c)) (when (= c.class "imv") (awful.placement.centered c))
(when (= c.class "Sxiv") (awful.placement.centered c))
(awful.client.focus.byidx 1) (awful.client.focus.byidx 1)
;; Rounded windows done right ;; Rounded windows done right

View file

@ -152,7 +152,7 @@
;; Programs ;; Programs
(awful.key [ modkey ] "d" (fn [] (awful.spawn "emacsclient -c -e '(dired-jump)'")) (awful.key [ modkey ] "d" (fn [] (awful.spawn "emacsclient -c -e '(dired-jump)'"))
{:description "launch dired in new emacs frame" :group "apps" }) {:description "launch dired in new emacs frame" :group "apps" })
(awful.key [ modkey shift ] "d" (fn [] (awful.spawn "dolphin")) (awful.key [ modkey shift ] "d" (fn [] (awful.spawn "env QT_QPA_PLATFORMTHEME='qt5ct' dolphin"))
{:description "launch dolphin file browser" :group "apps" }) {:description "launch dolphin file browser" :group "apps" })
(awful.key [ modkey ] "x" (fn [] (awful.spawn "emacsclient -c -e '(org-capture)'" (awful.key [ modkey ] "x" (fn [] (awful.spawn "emacsclient -c -e '(org-capture)'"
{:floating true :placement awful.placement.centered :class "org-agenda" :instance "org-agenda"})) {:floating true :placement awful.placement.centered :class "org-agenda" :instance "org-agenda"}))

View file

@ -199,17 +199,24 @@
:rule_any { :rule_any {
:class [ :class [
"fp64" "fp64"
"vlc"
"Vlc"
] ]
:instance [ :instance [
"fp64" "fp64"
"vlc"
"Vlc"
] ]
:name [ :name [
"Projection Window" "Display Window"
"OpenLP"
] ]
} }
:properties { :properties {
:fullscreen true :fullscreen true
:raise true :raise true
:ontop true
:screen (screen.count)
:placement (+ awful.placement.no_offscreen awful.placement.centered) :placement (+ awful.placement.no_offscreen awful.placement.centered)
} }
} }

View file

@ -50,7 +50,7 @@ s = scaling next
a = zoom actual a = zoom actual
r = reset r = reset
d = exec trash '$imv_current_file' d = close; exec trash $imv_current_file; echo $imv_current_file deleted
# Gif playback # Gif playback
<period> = next_frame <period> = next_frame

View file

@ -13,9 +13,9 @@ dirs = [
"~/nextcloud", "~/nextcloud",
"~/.dotemacs", "~/.dotemacs",
"~/.emacs.d", "~/.emacs.d",
"~/storage/tfc", # "~/storage/tfc",
"~/storage/nextcloud", # "~/storage/nextcloud",
"~/.dotfiles", # "~/.dotfiles",
"~/dotfiles", "~/dotfiles",
] ]

View file

@ -7,6 +7,7 @@ geometry=70%:70%
# input-ipc-server="/tmp/mpvsocket" # input-ipc-server="/tmp/mpvsocket"
hwdec=auto hwdec=auto
rtsp-transport=udp rtsp-transport=udp
speed=1.95
# ytdl-path=yt-dlp # ytdl-path=yt-dlp
ytdl-format=bestvideo[height<=?720][fps<=?30]+bestaudio/best ytdl-format=bestvideo[height<=?720][fps<=?30]+bestaudio/best

View file

@ -27,10 +27,10 @@ shadow-radius = 38;
shadow-opacity = 1.0; shadow-opacity = 1.0;
# The left offset for shadows, in pixels. (defaults to -15) # The left offset for shadows, in pixels. (defaults to -15)
shadow-offset-x = -20; shadow-offset-x = -28;
# The top offset for shadows, in pixels. (defaults to -15) # The top offset for shadows, in pixels. (defaults to -15)
shadow-offset-y = -20; shadow-offset-y = -28;
# Avoid drawing shadows on dock/panel windows. This option is deprecated, # Avoid drawing shadows on dock/panel windows. This option is deprecated,
# you should use the *wintypes* option in your config file instead. # you should use the *wintypes* option in your config file instead.
@ -69,6 +69,7 @@ shadow-offset-y = -20;
shadow-exclude = [ shadow-exclude = [
"name = 'Notification'", "name = 'Notification'",
"name = 'Projection Window'", "name = 'Projection Window'",
"name = 'Display Window'",
"name = 'Video'", "name = 'Video'",
"class_g = 'Conky'", "class_g = 'Conky'",
"class_g = 'Rofi'", "class_g = 'Rofi'",
@ -111,6 +112,7 @@ fade-out-step = 0.08;
# don't need this, we disable fading for all normal windows with wintypes: {} # don't need this, we disable fading for all normal windows with wintypes: {}
fade-exclude = [ fade-exclude = [
"name = 'Projection Window'", "name = 'Projection Window'",
"name = 'Display Window'",
"name = 'Video'", "name = 'Video'",
"class_g = 'slop'" # maim "class_g = 'slop'" # maim
] ]
@ -154,6 +156,7 @@ focus-exclude = [
"class_g = 'Cairo-clock'", "class_g = 'Cairo-clock'",
"class_g = 'Bar'", # lemonbar "class_g = 'Bar'", # lemonbar
"name = 'Projection Window'", "name = 'Projection Window'",
"name = 'Display Window'",
"class_g = 'slop'", # maim "class_g = 'slop'", # maim
"name = 'Video'", "name = 'Video'",
"class_g = 'mpv'" "class_g = 'mpv'"
@ -190,6 +193,7 @@ opacity-rule = [
"100:class_g = 'mpv'", "100:class_g = 'mpv'",
"100:class_g = 'libreoffice'", "100:class_g = 'libreoffice'",
"100:name = 'Projection Window'", "100:name = 'Projection Window'",
"100:name = 'Display Window'",
"100:name = 'Video'", "100:name = 'Video'",
"100:_NET_WM_STATE@[0]:32a *= '_NET_WM_STATE_FULLSCREEN'", "100:_NET_WM_STATE@[0]:32a *= '_NET_WM_STATE_FULLSCREEN'",
"0:_NET_WM_STATE@[0]:32a *= '_NET_WM_STATE_HIDDEN'", "0:_NET_WM_STATE@[0]:32a *= '_NET_WM_STATE_HIDDEN'",

View file

@ -0,0 +1,13 @@
/*-*- mode: css; -*-*/
configuration {
font: "VictorMono Nerd Font 22.0";
show-icons: false;
}
@import "/home/chris/.config/rofi/config.rasi"
window {
width: 70%;
}

10
scripts/batinfo Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
capacity=$(cat /sys/class/power_supply/BAT1/capacity)
status=$(cat /sys/class/power_supply/BAT1/status)
if [ $status = 'Charging' ]; then
icon=''
fi
echo $icon $capacity

View file

@ -7,7 +7,7 @@ else
#echo "this is not hidpi" #echo "this is not hidpi"
fi fi
lolcate | rofi -dmenu -p "File Search:" -i -matching regex -theme ~/.config/rofi/launchers-git/$style-rbw.rasi | xargs -r0 xdg-open $@ & lolcate | rofi -dmenu -p "File Search:" -i -matching regex -theme ~/.config/rofi/launchers-git/$style-search.rasi | xargs -r0 xdg-open $@ &
c=0 c=0
while ! xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $(xdotool search -class 'rofi') ; do while ! xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $(xdotool search -class 'rofi') ; do
sleep .1 sleep .1

View file

@ -41,7 +41,7 @@ abspath () {
listfiles () { listfiles () {
find -L "$(dirname "$target")" -maxdepth 1 -type f -iregex \ find -L "$(dirname "$target")" -maxdepth 1 -type f -iregex \
'.*\(jpe?g\|bmp\|png\|gif\)$' -print0 | sort -z '.*\(jpe?g\|bmp\|png\|gif\)$' -print0 | sort -z
} }
target="$(abspath "$1")" target="$(abspath "$1")"

View file

@ -26,7 +26,7 @@ do
readlink -f "$file" | tr -d '\n' | xclip -selection clipboard && readlink -f "$file" | tr -d '\n' | xclip -selection clipboard &&
notify-send "$(readlink -f "$file") copied to clipboard" & ;; notify-send "$(readlink -f "$file") copied to clipboard" & ;;
"d") "d")
[ "$(printf "No\\nYes" | rofi -dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;; [ "$(printf "No\\nYes" | rofi -dmenu -i -p "Really delete $file?")" = "Yes" ] && trash "$file" && notify-send "$file deleted." ;;
"g") ifinstalled gimp && setsid -f gimp "$file" ;; "g") ifinstalled gimp && setsid -f gimp "$file" ;;
"i") notify-send "File information" "$(mediainfo "$file")" ;; "i") notify-send "File information" "$(mediainfo "$file")" ;;
esac esac