Also a lot of stuff

This commit is contained in:
Chris Cochrun 2022-03-24 13:55:34 -05:00
parent a8ee3f5c13
commit 90422305a5
13 changed files with 100 additions and 44 deletions

@ -1 +1 @@
Subproject commit 0fb85341916b6de1c5cd6ddf3e8472292a93a303 Subproject commit 048cf41e0aa5a391948d62e6168d6e54279cf627

View file

@ -561,7 +561,7 @@
:y (- s.geometry.height yoffset) :y (- s.geometry.height yoffset)
:height (dpi 33) :height (dpi 33)
:width (- s.geometry.width (* xoffset 2)) :width (- s.geometry.width (* xoffset 2))
:ontop true :ontop false
:stretch false :stretch false
:type "dock" :type "dock"
:shape gears.shape.rounded_bar :shape gears.shape.rounded_bar
@ -744,7 +744,7 @@
(awful.spawn.once "killall jellyfin-mpv-shim && jellyfin-mpv-shim") (awful.spawn.once "killall jellyfin-mpv-shim && jellyfin-mpv-shim")
(awful.spawn.once "xset r rate 220 90") (awful.spawn.once "xset r rate 220 90")
(awful.spawn.once "/usr/lib/kdeconnectd") (awful.spawn.once "/usr/lib/kdeconnectd")
(awful.spawn.once "autorandr -c") ;;(awful.spawn.once "autorandr -c")
(awful.spawn.once "nm-applet") (if laptop (awful.spawn.once "nm-applet"))
(awful.spawn.once "xcape -e 'Super_L=Super_L|Control_L|Escape'") (awful.spawn.once "xcape -e 'Super_L=Super_L|Control_L|Escape'")
(awful.spawn.once "xcape -e 'Alt_L=Super_L|W'") (awful.spawn.once "xcape -e 'Alt_L=Super_L|W'")

View file

@ -120,6 +120,8 @@
{:description "run prompt" :group "launcher"}) {:description "run prompt" :group "launcher"})
(awful.key [ modkey ] "r" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/run.sh")) (awful.key [ modkey ] "r" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/run.sh"))
{:description "run prompt" :group "launcher"}) {:description "run prompt" :group "launcher"})
(awful.key [ modkey ] "v" (fn [] (awful.spawn "rofi-clip"))
{:description "clipboard" :group "launcher"})
(awful.key [ modkey shift ctrl ] "x" (fn [] (awful.key [ modkey shift ctrl ] "x" (fn []
(let [fscr (awful.screen.focused)] (let [fscr (awful.screen.focused)]
@ -203,6 +205,15 @@
(awful.key [] "XF86AudioMute" (fn [] (awful.spawn "pactl set-sink-mute @DEFAULT_SINK@ toggle") (awful.key [] "XF86AudioMute" (fn [] (awful.spawn "pactl set-sink-mute @DEFAULT_SINK@ toggle")
(awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga")) (awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
{:description "Mute volume" :group "audio"}) {:description "Mute volume" :group "audio"})
(awful.key [] "F3" (fn [] (awful.spawn "pactl set-sink-volume @DEFAULT_SINK@ +5%")
(awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
{:description "Increase volume by 5%" :group "audio"})
(awful.key [] "F2" (fn [] (awful.spawn "pactl set-sink-volume @DEFAULT_SINK@ -5%")
(awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
{:description "Decrease volume by 5%" :group "audio"})
(awful.key [] "F1" (fn [] (awful.spawn "pactl set-sink-mute @DEFAULT_SINK@ toggle")
(awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
{:description "Mute volume" :group "audio"})
(awful.key [] "XF86Launch8" (fn [] (awful.spawn "pactl set-source-mute @DEFAULT_SOURCE@ toggle") (awful.key [] "XF86Launch8" (fn [] (awful.spawn "pactl set-source-mute @DEFAULT_SOURCE@ toggle")
(awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga")) (awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
{:description "Mute microphone" :group "audio"}) {:description "Mute microphone" :group "audio"})

View file

@ -37,10 +37,10 @@
:properties { :properties {
:floating true :floating true
:raise true :raise true
:height (dpi 800) :height (dpi 1000)
:screen (screen.count) :screen 2
:sticky true :sticky true
:placement (+ awful.placement.no_offscreen awful.placement.centered) :placement awful.placement.centered
} }
} }
;; Davinci Resolve is fullscreen ;; Davinci Resolve is fullscreen
@ -63,6 +63,7 @@
:rule_any { :rule_any {
:name [ :name [
"Secondary Screen" "Secondary Screen"
"Church Presenter"
] ]
} }
:properties { :properties {
@ -168,7 +169,7 @@
] ]
} }
:properties { :properties {
:screen (screen.count) :screen 2
:focus awful.client.focus.filter :focus awful.client.focus.filter
:raise true :raise true
} }
@ -204,7 +205,7 @@
:properties { :properties {
:floating true :floating true
:raise true :raise true
:placement awful.placement.centered :placement (+ awful.placement.centered awful.placement.no_offscreen)
} }
} }
{ {

View file

@ -181,7 +181,7 @@ the close button is positioned to the far right */
/*visibility: visible !important;*/ /*visibility: visible !important;*/
min-height: 34px !important; min-height: 34px !important;
max-height: 34px !important; max-height: 34px !important;
margin-top: 10px !important; margin-top: 15px !important;
margin-bottom: -48px !important; margin-bottom: -48px !important;
transition: all 200ms ease 0s !important; transition: all 200ms ease 0s !important;
z-index: 5 !important; z-index: 5 !important;
@ -191,7 +191,7 @@ the close button is positioned to the far right */
/* make urlbar rounded */ /* make urlbar rounded */
#urlbar{ #urlbar{
margin-top: 36px !important; margin-top: 21px !important;
padding-right: 10px !important; padding-right: 10px !important;
padding-left: 10px !important; padding-left: 10px !important;
} }
@ -206,7 +206,7 @@ the close button is positioned to the far right */
} }
#urlbar[breakout][breakout-extend] { #urlbar[breakout][breakout-extend] {
margin-top: 15px !important; margin-top: 5px !important;
top: 0px !important; top: 0px !important;
} }

View file

@ -2,8 +2,8 @@
osc=no osc=no
vo=gpu vo=gpu
af=scaletempo2 af=scaletempo2
autofit=90% autofit=99%
geometry=80%:80% geometry=99%:99%
# input-ipc-server="/tmp/mpvsocket" # input-ipc-server="/tmp/mpvsocket"
hwdec=auto hwdec=auto
rtsp-transport=udp rtsp-transport=udp

View file

@ -53,19 +53,20 @@
;; here we take that string and pipe it into mpv ;; here we take that string and pipe it into mpv
(mpv url))) (mpv url)))
:annotate-visible-only-p :annotate-visible-only-p
nyxt/web-mode::annotate-visible-only-p)) nyxt/web-mode::annotate-visible-only-p)
(nyxt/) )
;; Let's create a function to hint videos, convert the url to a sting, and download with ytdl ;; Let's create a function to hint videos, convert the url to a sting, and download with ytdl
(define-command hint-ytdl (&key nyxt/web-mode::annotate-visible-only-p) (define-command hint-ytdl (&key nyxt/web-mode::annotate-visible-only-p)
"Show a set of element hints, and copy the URL of the user inputted one." "Show a set of element hints, and copy the URL of the user inputted one."
(nyxt/web-mode:query-hints "Copy element URL" (nyxt/web-mode:query-hints "Copy element URL"
(lambda (nyxt/web-mode::result) (lambda (nyxt/web-mode::result)
;; this converts the url to a string to be used in mpv ;; this converts the url to a string to be used in yt-dlp
(let* (let*
((url ((url
(format nil "~a" (format nil "~a"
(url (first nyxt/web-mode::result))))) (url (first nyxt/web-mode::result)))))
;; here we take that string and pipe it into mpv ;; here we take that string and pipe it into yt-dlp
(youtube-dl url))) (youtube-dl url)))
:annotate-visible-only-p :annotate-visible-only-p
nyxt/web-mode::annotate-visible-only-p)) nyxt/web-mode::annotate-visible-only-p))

View file

@ -21,16 +21,16 @@ round-borders-exclude = [
shadow = true; shadow = true;
# The blur radius for shadows, in pixels. (defaults to 12) # The blur radius for shadows, in pixels. (defaults to 12)
shadow-radius = 38; shadow-radius = 24;
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75) # The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
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 = -15;
# 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 = -15;
# 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.

View file

@ -814,7 +814,7 @@ c.colors.webpage.darkmode.policy.page = "smart"
## Force `prefers-color-scheme: dark` colors for websites. ## Force `prefers-color-scheme: dark` colors for websites.
## Type: Bool ## Type: Bool
#c.colors.webpage.prefered_color_scheme = "dark" c.colors.webpage.preferred_color_scheme = "dark"
## Number of commands to save in the command history. 0: no history / -1: ## Number of commands to save in the command history. 0: no history / -1:
## unlimited ## unlimited

View file

@ -0,0 +1,25 @@
/*-*- mode: css; -*-*/
configuration {
font: "VictorMono Nerd Font 14.0";
show-icons: true;
display-clipboard: " ";
}
@import "/home/chris/.config/rofi/config.rasi"
window {
width: 50%;
}
element {
padding: 5px 5px 5px 10px;
}
element-icon {
size: 0px;
padding: 0px 0px 0px;
}
element-text {
vertical-align: 0.5;
}

14
scripts/focus_window.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
eval $(xdotool getmouselocation --shell)
if [ "$1" -eq "1" ]; then
xdotool mousemove 900 $Y
elif [ "$1" -eq "2" ]; then
xdotool mousemove 2560 $Y
elif [ "$1" -eq "3" ]; then
if [ $Y -gt 700 ]; then
Y=700
fi
xdotool mousemove 4000 $Y
fi

4
scripts/rofi-clip Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
style="desktop"
rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' -theme ~/.config/rofi/launchers-git/$style-clipboard.rasi

View file

@ -65,7 +65,7 @@ bind v hint -W mpv
bind gt hint -W torrent bind gt hint -W torrent
bind gv current_url mpv bind gv current_url mpv
bind gV hint ytdl bind gV hint ytdl
bind F hint -w bind F hint -t
bind gy hint -y bind gy hint -y
bind gc org-capture bind gc org-capture
bind gC hint -W org-capture bind gC hint -W org-capture