Also a lot of stuff
This commit is contained in:
parent
a8ee3f5c13
commit
90422305a5
|
@ -1 +1 @@
|
|||
Subproject commit 0fb85341916b6de1c5cd6ddf3e8472292a93a303
|
||||
Subproject commit 048cf41e0aa5a391948d62e6168d6e54279cf627
|
|
@ -561,7 +561,7 @@
|
|||
:y (- s.geometry.height yoffset)
|
||||
:height (dpi 33)
|
||||
:width (- s.geometry.width (* xoffset 2))
|
||||
:ontop true
|
||||
:ontop false
|
||||
:stretch false
|
||||
:type "dock"
|
||||
:shape gears.shape.rounded_bar
|
||||
|
@ -744,7 +744,7 @@
|
|||
(awful.spawn.once "killall jellyfin-mpv-shim && jellyfin-mpv-shim")
|
||||
(awful.spawn.once "xset r rate 220 90")
|
||||
(awful.spawn.once "/usr/lib/kdeconnectd")
|
||||
(awful.spawn.once "autorandr -c")
|
||||
(awful.spawn.once "nm-applet")
|
||||
;;(awful.spawn.once "autorandr -c")
|
||||
(if laptop (awful.spawn.once "nm-applet"))
|
||||
(awful.spawn.once "xcape -e 'Super_L=Super_L|Control_L|Escape'")
|
||||
(awful.spawn.once "xcape -e 'Alt_L=Super_L|W'")
|
||||
|
|
|
@ -120,6 +120,8 @@
|
|||
{:description "run prompt" :group "launcher"})
|
||||
(awful.key [ modkey ] "r" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/run.sh"))
|
||||
{: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 []
|
||||
(let [fscr (awful.screen.focused)]
|
||||
|
@ -203,6 +205,15 @@
|
|||
(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"))
|
||||
{: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.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
|
||||
{:description "Mute microphone" :group "audio"})
|
||||
|
|
|
@ -37,10 +37,10 @@
|
|||
:properties {
|
||||
:floating true
|
||||
:raise true
|
||||
:height (dpi 800)
|
||||
:screen (screen.count)
|
||||
:height (dpi 1000)
|
||||
:screen 2
|
||||
:sticky true
|
||||
:placement (+ awful.placement.no_offscreen awful.placement.centered)
|
||||
:placement awful.placement.centered
|
||||
}
|
||||
}
|
||||
;; Davinci Resolve is fullscreen
|
||||
|
@ -63,6 +63,7 @@
|
|||
:rule_any {
|
||||
:name [
|
||||
"Secondary Screen"
|
||||
"Church Presenter"
|
||||
]
|
||||
}
|
||||
:properties {
|
||||
|
@ -168,7 +169,7 @@
|
|||
]
|
||||
}
|
||||
:properties {
|
||||
:screen (screen.count)
|
||||
:screen 2
|
||||
:focus awful.client.focus.filter
|
||||
:raise true
|
||||
}
|
||||
|
@ -204,7 +205,7 @@
|
|||
:properties {
|
||||
:floating true
|
||||
:raise true
|
||||
:placement awful.placement.centered
|
||||
:placement (+ awful.placement.centered awful.placement.no_offscreen)
|
||||
}
|
||||
}
|
||||
{
|
||||
|
|
|
@ -181,7 +181,7 @@ the close button is positioned to the far right */
|
|||
/*visibility: visible !important;*/
|
||||
min-height: 34px !important;
|
||||
max-height: 34px !important;
|
||||
margin-top: 10px !important;
|
||||
margin-top: 15px !important;
|
||||
margin-bottom: -48px !important;
|
||||
transition: all 200ms ease 0s !important;
|
||||
z-index: 5 !important;
|
||||
|
@ -191,7 +191,7 @@ the close button is positioned to the far right */
|
|||
|
||||
/* make urlbar rounded */
|
||||
#urlbar{
|
||||
margin-top: 36px !important;
|
||||
margin-top: 21px !important;
|
||||
padding-right: 10px !important;
|
||||
padding-left: 10px !important;
|
||||
}
|
||||
|
@ -206,7 +206,7 @@ the close button is positioned to the far right */
|
|||
}
|
||||
|
||||
#urlbar[breakout][breakout-extend] {
|
||||
margin-top: 15px !important;
|
||||
margin-top: 5px !important;
|
||||
top: 0px !important;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
osc=no
|
||||
vo=gpu
|
||||
af=scaletempo2
|
||||
autofit=90%
|
||||
geometry=80%:80%
|
||||
autofit=99%
|
||||
geometry=99%:99%
|
||||
# input-ipc-server="/tmp/mpvsocket"
|
||||
hwdec=auto
|
||||
rtsp-transport=udp
|
||||
|
|
|
@ -53,19 +53,20 @@
|
|||
;; here we take that string and pipe it into mpv
|
||||
(mpv url)))
|
||||
: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
|
||||
(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."
|
||||
(nyxt/web-mode:query-hints "Copy element URL"
|
||||
(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*
|
||||
((url
|
||||
(format nil "~a"
|
||||
(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)))
|
||||
:annotate-visible-only-p
|
||||
nyxt/web-mode::annotate-visible-only-p))
|
||||
|
|
|
@ -21,16 +21,16 @@ round-borders-exclude = [
|
|||
shadow = true;
|
||||
|
||||
# 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)
|
||||
shadow-opacity = 1.0;
|
||||
|
||||
# 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)
|
||||
shadow-offset-y = -20;
|
||||
shadow-offset-y = -15;
|
||||
|
||||
# Avoid drawing shadows on dock/panel windows. This option is deprecated,
|
||||
# you should use the *wintypes* option in your config file instead.
|
||||
|
|
|
@ -814,7 +814,7 @@ c.colors.webpage.darkmode.policy.page = "smart"
|
|||
|
||||
## Force `prefers-color-scheme: dark` colors for websites.
|
||||
## 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:
|
||||
## unlimited
|
||||
|
|
25
rofi/launchers-git/desktop-clipboard.rasi
Normal file
25
rofi/launchers-git/desktop-clipboard.rasi
Normal 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
14
scripts/focus_window.sh
Executable 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
4
scripts/rofi-clip
Executable 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
|
|
@ -65,7 +65,7 @@ bind v hint -W mpv
|
|||
bind gt hint -W torrent
|
||||
bind gv current_url mpv
|
||||
bind gV hint ytdl
|
||||
bind F hint -w
|
||||
bind F hint -t
|
||||
bind gy hint -y
|
||||
bind gc org-capture
|
||||
bind gC hint -W org-capture
|
||||
|
|
Loading…
Reference in a new issue