Merge branch 'master' of gitlab.com:chriscochrun/dotfiles
This commit is contained in:
commit
8e179c3910
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"}))
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -13,9 +13,9 @@ dirs = [
|
|||
"~/nextcloud",
|
||||
"~/.dotemacs",
|
||||
"~/.emacs.d",
|
||||
"~/storage/tfc",
|
||||
"~/storage/nextcloud",
|
||||
"~/.dotfiles",
|
||||
# "~/storage/tfc",
|
||||
# "~/storage/nextcloud",
|
||||
# "~/.dotfiles",
|
||||
"~/dotfiles",
|
||||
]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'",
|
||||
|
|
13
rofi/launchers-git/laptop-search.rasi
Normal file
13
rofi/launchers-git/laptop-search.rasi
Normal 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
10
scripts/batinfo
Executable 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
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue