a lot of random poop

This commit is contained in:
Chris Cochrun 2021-10-11 09:18:45 -05:00
parent e4290fb279
commit f43677bd30
14 changed files with 50 additions and 14 deletions

View file

@ -318,7 +318,7 @@ colors:
#
# 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.
background_opacity: 1
background_opacity: 0.75
#selection:
#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"

View file

@ -653,6 +653,7 @@
;; MPV wasn't centering right
(when (= c.class "mpv") (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)
;; Rounded windows done right

View file

@ -152,7 +152,7 @@
;; Programs
(awful.key [ modkey ] "d" (fn [] (awful.spawn "emacsclient -c -e '(dired-jump)'"))
{: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" })
(awful.key [ modkey ] "x" (fn [] (awful.spawn "emacsclient -c -e '(org-capture)'"
{:floating true :placement awful.placement.centered :class "org-agenda" :instance "org-agenda"}))

View file

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

View file

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

View file

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

View file

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

View file

@ -27,10 +27,10 @@ shadow-radius = 38;
shadow-opacity = 1.0;
# 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)
shadow-offset-y = -20;
shadow-offset-y = -28;
# Avoid drawing shadows on dock/panel windows. This option is deprecated,
# you should use the *wintypes* option in your config file instead.
@ -69,6 +69,7 @@ shadow-offset-y = -20;
shadow-exclude = [
"name = 'Notification'",
"name = 'Projection Window'",
"name = 'Display Window'",
"name = 'Video'",
"class_g = 'Conky'",
"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: {}
fade-exclude = [
"name = 'Projection Window'",
"name = 'Display Window'",
"name = 'Video'",
"class_g = 'slop'" # maim
]
@ -154,6 +156,7 @@ focus-exclude = [
"class_g = 'Cairo-clock'",
"class_g = 'Bar'", # lemonbar
"name = 'Projection Window'",
"name = 'Display Window'",
"class_g = 'slop'", # maim
"name = 'Video'",
"class_g = 'mpv'"
@ -190,6 +193,7 @@ opacity-rule = [
"100:class_g = 'mpv'",
"100:class_g = 'libreoffice'",
"100:name = 'Projection Window'",
"100:name = 'Display Window'",
"100:name = 'Video'",
"100:_NET_WM_STATE@[0]:32a *= '_NET_WM_STATE_FULLSCREEN'",
"0:_NET_WM_STATE@[0]:32a *= '_NET_WM_STATE_HIDDEN'",

View file

@ -2423,8 +2423,8 @@ config.bind("o", "set-cmd-text -s :open")
# config.bind('<Escape>', 'leave-mode', mode='command')
# config.bind('<Return>', 'command-accept', mode='command')
# config.bind('<Shift-Delete>', 'completion-item-del', mode='command')
# config.bind('<Shift-Tab>', 'completion-item-focus prev', mode='command')
# config.bind('<Tab>', 'completion-item-focus next', mode='command')
config.bind('<Ctrl-k>', 'completion-item-focus prev', mode='command')
config.bind('<Ctrl-j>', 'completion-item-focus next', mode='command')
# config.bind('<Up>', 'completion-item-focus --history prev', mode='command')
## Bindings for hint mode

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"
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
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

View file

@ -26,7 +26,7 @@ do
readlink -f "$file" | tr -d '\n' | xclip -selection clipboard &&
notify-send "$(readlink -f "$file") copied to clipboard" & ;;
"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" ;;
"i") notify-send "File information" "$(mediainfo "$file")" ;;
esac