A lot of probably pointless additions

This commit is contained in:
Chris Cochrun 2021-02-27 09:37:46 -06:00
parent ca95ac0419
commit 0fd3495ff7
6 changed files with 132 additions and 127 deletions

View file

@ -51,8 +51,8 @@
(awful.key [ modkey ] "u" awful.client.urgent.jumpto (awful.key [ modkey ] "u" awful.client.urgent.jumpto
{:description "jump to urgent client" :group "client"}) {:description "jump to urgent client" :group "client"})
(awful.key [ modkey ] "Tab" (fn [] (awful.key [ modkey ] "Tab" (fn []
(awful.client.focus.history.previous) (awful.client.focus.history.previous)
(when client.focus (: client.focus :raise))) (when client.focus (: client.focus :raise)))
{:description "go back" :group "client"}) {:description "go back" :group "client"})
;; Standard program ;; Standard program
@ -89,9 +89,9 @@
(awful.key [ modkey shift ] "space" (fn [] (awful.layout.inc -1)) (awful.key [ modkey shift ] "space" (fn [] (awful.layout.inc -1))
{:description "select previous" :group "layout"}) {:description "select previous" :group "layout"})
(awful.key [ modkey ctrl ] "n" (fn [] (awful.key [ modkey ctrl ] "n" (fn []
(local c (awful.client.restore)) (local c (awful.client.restore))
(when c ;; Focus restored client (when c ;; Focus restored client
(: c :emit_signal "request::activate" "key.unminimize" {:raise true}))) (: c :emit_signal "request::activate" "key.unminimize" {:raise true})))
{:description "restore minimized" :group "client"}) {:description "restore minimized" :group "client"})
;; Prompt ;; Prompt
@ -99,13 +99,13 @@
{:description "run prompt" :group "launcher"}) {:description "run prompt" :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)]
(awful.prompt.run { (awful.prompt.run {
:prompt "Run Lua code: " :prompt "Run Lua code: "
:textbox fscr.mypromptbox.widget :textbox fscr.mypromptbox.widget
:exe_callback awful.util.eval :exe_callback awful.util.eval
:history_path (.. (awful.util.get_cache_dir) "/history_eval") :history_path (.. (awful.util.get_cache_dir) "/history_eval")
}))) })))
{:description "lua execute prompt" :group "awesome"}) {:description "lua execute prompt" :group "awesome"})
;; utilities ;; utilities
@ -114,10 +114,10 @@
(awful.key [ modkey ] "." (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/emoji.sh")) (awful.key [ modkey ] "." (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/emoji.sh"))
{:description "emoji picker" :group "utilities"}) {:description "emoji picker" :group "utilities"})
(awful.key [] "XF86MonBrightnessUp" (fn [] (awful.spawn (awful.key [] "XF86MonBrightnessUp" (fn [] (awful.spawn
"light -A 5")) "light -A 5"))
{:description "Increase monitor brightness by 5%" :group "utilities"}) {:description "Increase monitor brightness by 5%" :group "utilities"})
(awful.key [] "XF86MonBrightnessDown" (fn [] (awful.spawn (awful.key [] "XF86MonBrightnessDown" (fn [] (awful.spawn
"light -U 5")) "light -U 5"))
{:description "Decrease monitor brightness by 5%" :group "utilities"}) {:description "Decrease monitor brightness by 5%" :group "utilities"})
;; Menubar ;; Menubar
;; (awful.key [ modkey ] "p" (fn [] (menubar.show)) ;; (awful.key [ modkey ] "p" (fn [] (menubar.show))
@ -142,12 +142,14 @@
{:description "select pass" :group "apps" }) {:description "select pass" :group "apps" })
(awful.key [ modkey shift ] "w" (fn [] (awful.spawn "libreoffice --writer")) (awful.key [ modkey shift ] "w" (fn [] (awful.spawn "libreoffice --writer"))
{:description "Open Writer" :group "apps" }) {:description "Open Writer" :group "apps" })
(awful.key [modkey] "b" (fn [] (awful.spawn "qutebrowser"))
{:description "launch qutebrowser" :group "apps"})
;; rofi ;; rofi
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/launcher.sh")) (awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/launcher.sh"))
{:description "launch rofi" :group "launcher"}) {:description "launch rofi" :group "launcher"})
(awful.key [modkey] "w" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/windows.sh")) (awful.key [modkey] "w" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/windows.sh"))
{:description "launch rofi window switcher" :group "launcher"}) {:description "launch rofi window switcher" :group "launcher"})
(awful.key [modkey] "b" (fn [] (awful.spawn bwmenu)) (awful.key [modkey shift] "b" (fn [] (awful.spawn bwmenu))
{:description "launch rofi bitwarden selector" :group "launcher"}) {:description "launch rofi bitwarden selector" :group "launcher"})
(awful.key [modkey] "y" (fn [] (awful.spawn "yt -r")) (awful.key [modkey] "y" (fn [] (awful.spawn "yt -r"))
{:description "search youtube" :group "launcher"}) {:description "search youtube" :group "launcher"})
@ -155,16 +157,16 @@
(awful.key [modkey] "a" (fn [] (awful.spawn "alacritty --class pulsemixer -e pulsemixer")) (awful.key [modkey] "a" (fn [] (awful.spawn "alacritty --class pulsemixer -e pulsemixer"))
{:description "launch pulsemixer" :group "audio"}) {:description "launch pulsemixer" :group "audio"})
(awful.key [] "XF86AudioRaiseVolume" (fn [] (awful.spawn "pactl set-sink-volume @DEFAULT_SINK@ +5%") (awful.key [] "XF86AudioRaiseVolume" (fn [] (awful.spawn "pactl set-sink-volume @DEFAULT_SINK@ +5%")
(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 "Increase volume by 5%" :group "audio"}) {:description "Increase volume by 5%" :group "audio"})
(awful.key [] "XF86AudioLowerVolume" (fn [] (awful.spawn "pactl set-sink-volume @DEFAULT_SINK@ -5%") (awful.key [] "XF86AudioLowerVolume" (fn [] (awful.spawn "pactl set-sink-volume @DEFAULT_SINK@ -5%")
(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 "Decrease volume by 5%" :group "audio"}) {:description "Decrease volume by 5%" :group "audio"})
(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 [] "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"})
(awful.key [modkey] "]" (fn [] (awful.spawn "mpvc -x 0.10")) (awful.key [modkey] "]" (fn [] (awful.spawn "mpvc -x 0.10"))
{:description "MPV speed up by .10" :group "audio"}) {:description "MPV speed up by .10" :group "audio"})
@ -181,147 +183,147 @@
;; View tags only. ;; View tags only.
(awful.key [ modkey ] "1" (awful.key [ modkey ] "1"
(fn [] (fn []
(let [screen (awful.screen.focused) (let [screen (awful.screen.focused)
tag (. screen.tags 1)] tag (. screen.tags 1)]
(when tag (when tag
(: tag :view_only)))) (: tag :view_only))))
{:description "view tag #1" :group "tag"}) {:description "view tag #1" :group "tag"})
(awful.key [ modkey ] "2" (awful.key [ modkey ] "2"
(fn [] (fn []
(let [screen (awful.screen.focused) (let [screen (awful.screen.focused)
tag (. screen.tags 2)] tag (. screen.tags 2)]
(when tag (when tag
(: tag :view_only)))) (: tag :view_only))))
{:description "view tag #2" :group "tag"}) {:description "view tag #2" :group "tag"})
(awful.key [ modkey ] "3" (awful.key [ modkey ] "3"
(fn [] (fn []
(let [screen (awful.screen.focused) (let [screen (awful.screen.focused)
tag (. screen.tags 3)] tag (. screen.tags 3)]
(when tag (when tag
(: tag :view_only)))) (: tag :view_only))))
{:description "view tag #3" :group "tag"}) {:description "view tag #3" :group "tag"})
(awful.key [ modkey ] "4" (awful.key [ modkey ] "4"
(fn [] (fn []
(let [screen (awful.screen.focused) (let [screen (awful.screen.focused)
tag (. screen.tags 4)] tag (. screen.tags 4)]
(when tag (when tag
(: tag :view_only)))) (: tag :view_only))))
{:description "view tag #4" :group "tag"}) {:description "view tag #4" :group "tag"})
(awful.key [] "XF86Tools" (awful.key [] "XF86Tools"
(fn [] (fn []
(let [screen (awful.screen.focused) (let [screen (awful.screen.focused)
tag (. screen.tags 1)] tag (. screen.tags 1)]
(when tag (when tag
(: tag :view_only)))) (: tag :view_only))))
{:description "view tag #1" :group "tag"}) {:description "view tag #1" :group "tag"})
(awful.key [] "XF86Launch5" (awful.key [] "XF86Launch5"
(fn [] (fn []
(let [screen (awful.screen.focused) (let [screen (awful.screen.focused)
tag (. screen.tags 2)] tag (. screen.tags 2)]
(when tag (when tag
(: tag :view_only)))) (: tag :view_only))))
{:description "view tag #2" :group "tag"}) {:description "view tag #2" :group "tag"})
(awful.key [] "XF86Launch6" (awful.key [] "XF86Launch6"
(fn [] (fn []
(let [screen (awful.screen.focused) (let [screen (awful.screen.focused)
tag (. screen.tags 3)] tag (. screen.tags 3)]
(when tag (when tag
(: tag :view_only)))) (: tag :view_only))))
{:description "view tag #3" :group "tag"}) {:description "view tag #3" :group "tag"})
(awful.key [] "XF86Launch7" (awful.key [] "XF86Launch7"
(fn [] (fn []
(let [screen (awful.screen.focused) (let [screen (awful.screen.focused)
tag (. screen.tags 4)] tag (. screen.tags 4)]
(when tag (when tag
(: tag :view_only)))) (: tag :view_only))))
{:description "view tag #4" :group "tag"}) {:description "view tag #4" :group "tag"})
;; Move client to tag ;; Move client to tag
(awful.key [ modkey shift ] "1" (awful.key [ modkey shift ] "1"
(fn [] (fn []
(when client.focus (when client.focus
(let [tag (. client.focus.screen.tags 1)] (let [tag (. client.focus.screen.tags 1)]
(when tag (when tag
(: client.focus :move_to_tag tag))))) (: client.focus :move_to_tag tag)))))
{:description "move focused client to tag #1" :group "tag"}) {:description "move focused client to tag #1" :group "tag"})
(awful.key [ modkey shift ] "2" (awful.key [ modkey shift ] "2"
(fn [] (fn []
(when client.focus (when client.focus
(let [tag (. client.focus.screen.tags 2)] (let [tag (. client.focus.screen.tags 2)]
(when tag (when tag
(: client.focus :move_to_tag tag))))) (: client.focus :move_to_tag tag)))))
{:description "move focused client to tag #2" :group "tag"}) {:description "move focused client to tag #2" :group "tag"})
(awful.key [ modkey shift ] "3" (awful.key [ modkey shift ] "3"
(fn [] (fn []
(when client.focus (when client.focus
(let [tag (. client.focus.screen.tags 3)] (let [tag (. client.focus.screen.tags 3)]
(when tag (when tag
(: client.focus :move_to_tag tag))))) (: client.focus :move_to_tag tag)))))
{:description "move focused client to tag #3" :group "tag"}) {:description "move focused client to tag #3" :group "tag"})
(awful.key [ modkey shift ] "4" (awful.key [ modkey shift ] "4"
(fn [] (fn []
(when client.focus (when client.focus
(let [tag (. client.focus.screen.tags 4)] (let [tag (. client.focus.screen.tags 4)]
(when tag (when tag
(: client.focus :move_to_tag tag))))) (: client.focus :move_to_tag tag)))))
{:description "move focused client to tag #4" :group "tag"}) {:description "move focused client to tag #4" :group "tag"})
;; Toggle tag display. Not working yet, can't pinpoint the problem. ;; Toggle tag display. Not working yet, can't pinpoint the problem.
(awful.key [ modkey ctrl ] "1" (awful.key [ modkey ctrl ] "1"
(fn [] (fn []
(let [screen (awful.screen.focused) (let [screen (awful.screen.focused)
tag (. screen.tags 1)] tag (. screen.tags 1)]
(when tag (when tag
(awful.tag.viewtoggle tag)))) (awful.tag.viewtoggle tag))))
{:description "toggle tag #1" :group "tag"}) {:description "toggle tag #1" :group "tag"})
(awful.key [ modkey ctrl ] "2" (awful.key [ modkey ctrl ] "2"
(fn [] (fn []
(let [screen (awful.screen.focused) (let [screen (awful.screen.focused)
tag (. screen.tags 2)] tag (. screen.tags 2)]
(when tag (when tag
(awful.tag.viewtoggle tag)))) (awful.tag.viewtoggle tag))))
{:description "toggle tag #2" :group "tag"}) {:description "toggle tag #2" :group "tag"})
(awful.key [ modkey ctrl ] "3" (awful.key [ modkey ctrl ] "3"
(fn [] (fn []
(let [screen (awful.screen.focused) (let [screen (awful.screen.focused)
tag (. screen.tags 3)] tag (. screen.tags 3)]
(when tag (when tag
(awful.tag.viewtoggle tag)))) (awful.tag.viewtoggle tag))))
{:description "toggle tag #3" :group "tag"}) {:description "toggle tag #3" :group "tag"})
(awful.key [ modkey ctrl ] "4" (awful.key [ modkey ctrl ] "4"
(fn [] (fn []
(let [screen (awful.screen.focused) (let [screen (awful.screen.focused)
tag (. screen.tags 4)] tag (. screen.tags 4)]
(when tag (when tag
(awful.tag.viewtoggle tag)))) (awful.tag.viewtoggle tag))))
{:description "toggle tag #4" :group "tag"}) {:description "toggle tag #4" :group "tag"})
;; Toggle tag on focused client. ;; Toggle tag on focused client.
(awful.key [ modkey ctrl shift ] "1" (awful.key [ modkey ctrl shift ] "1"
(fn [] (fn []
(when client.focus (when client.focus
(let [tag (. client.focus.screen.tags 1)] (let [tag (. client.focus.screen.tags 1)]
(when tag (when tag
(: client.focus :toggle_tag tag))))) (: client.focus :toggle_tag tag)))))
{:description "toggle focused client on tag #1" :group "tag"}) {:description "toggle focused client on tag #1" :group "tag"})
(awful.key [ modkey ctrl shift ] "2" (awful.key [ modkey ctrl shift ] "2"
(fn [] (fn []
(when client.focus (when client.focus
(let [tag (. client.focus.screen.tags 2)] (let [tag (. client.focus.screen.tags 2)]
(when tag (when tag
(: client.focus :toggle_tag tag))))) (: client.focus :toggle_tag tag)))))
{:description "toggle focused client on tag #2" :group "tag"}) {:description "toggle focused client on tag #2" :group "tag"})
(awful.key [ modkey ctrl shift ] "3" (awful.key [ modkey ctrl shift ] "3"
(fn [] (fn []
(when client.focus (when client.focus
(let [tag (. client.focus.screen.tags 3)] (let [tag (. client.focus.screen.tags 3)]
(when tag (when tag
(: client.focus :toggle_tag tag))))) (: client.focus :toggle_tag tag)))))
{:description "toggle focused client on tag #3" :group "tag"}) {:description "toggle focused client on tag #3" :group "tag"})
(awful.key [ modkey ctrl shift ] "4" (awful.key [ modkey ctrl shift ] "4"
(fn [] (fn []
(when client.focus (when client.focus
(let [tag (. client.focus.screen.tags 4)] (let [tag (. client.focus.screen.tags 4)]
(when tag (when tag
(: client.focus :toggle_tag tag))))) (: client.focus :toggle_tag tag)))))
{:description "toggle focused client on tag #4" :group "tag"}) {:description "toggle focused client on tag #4" :group "tag"})
) )
@ -339,9 +341,9 @@
(awful.key [ modkey ] "t" (fn [c] (set c.ontop (not c.ontop))) (awful.key [ modkey ] "t" (fn [c] (set c.ontop (not c.ontop)))
{:description "toggle keep on top" :group "client"}) {:description "toggle keep on top" :group "client"})
(awful.key [ modkey ] "n" (fn [c] (awful.key [ modkey ] "n" (fn [c]
;; The client currently has the input focus, so it cannot be ;; The client currently has the input focus, so it cannot be
;; minimized, since minimized clients can't have the focus. ;; minimized, since minimized clients can't have the focus.
(set c.minimized true)) (set c.minimized true))
{:description "minimize" :group "client"}) {:description "minimize" :group "client"})
(awful.key [ modkey ] "m" (fn [c] (set c.maximized (not c.maximized)) (: c :raise)) (awful.key [ modkey ] "m" (fn [c] (set c.maximized (not c.maximized)) (: c :raise))
{:description "(un)maximize" :group "client"}) {:description "(un)maximize" :group "client"})
@ -353,11 +355,11 @@
:clientbuttons (gears.table.join :clientbuttons (gears.table.join
(awful.button [] 1 (fn [c] (: c :emit_signal "request::activate" "mouse_click" {:raise true}))) (awful.button [] 1 (fn [c] (: c :emit_signal "request::activate" "mouse_click" {:raise true})))
(awful.button [ modkey ] 1 (fn [c] (awful.button [ modkey ] 1 (fn [c]
(: c :emit_signal "request::activate" "mouse_click" {:raise true}) (: c :emit_signal "request::activate" "mouse_click" {:raise true})
(awful.mouse.client.move c))) (awful.mouse.client.move c)))
(awful.button [ modkey ] 3 (fn [c] (awful.button [ modkey ] 3 (fn [c]
(: c :emit_signal "request::activate" "mouse_click" {:raise true}) (: c :emit_signal "request::activate" "mouse_click" {:raise true})
(awful.mouse.client.resize c)))) (awful.mouse.client.resize c))))
} }
) )

View file

@ -29,8 +29,8 @@
"mpv" "mpv"
] ]
:name [ :name [
"Picture-in-Picture" "Picture-in-Picture"
] ]
} }
:properties { :properties {
:floating true :floating true
@ -60,15 +60,15 @@
{ {
:rule_any { :rule_any {
:instance [ :instance [
"pulsemixer" "pulsemixer"
] ]
} }
:properties { :properties {
:floating true :floating true
:raise true :raise true
:ontop true :ontop true
:screen awful.screen.preferred :screen awful.screen.preferred
:width (dpi 600) ;; :width (dpi 600)
:height (dpi 300) :height (dpi 300)
:placement (+ awful.placement.no_offscreen awful.placement.centered) :placement (+ awful.placement.no_offscreen awful.placement.centered)
} }

View file

@ -2,7 +2,7 @@
contrastOpacity=175 contrastOpacity=175
contrastUiColor=#db8800 contrastUiColor=#db8800
disabledTrayIcon=true disabledTrayIcon=true
drawColor=#7cc6da drawColor=#0e8f17
drawThickness=77 drawThickness=77
saveAfterCopy=true saveAfterCopy=true
saveAfterCopyPath=/home/chris/Pictures saveAfterCopyPath=/home/chris/Pictures

View file

@ -11,4 +11,6 @@ settings:
content.notifications: content.notifications:
https://jelly.cochrun.xyz: true https://jelly.cochrun.xyz: true
https://nc.cochrun.xyz: false https://nc.cochrun.xyz: false
https://www.facebook.com: false
https://www.g2a.com: false
https://www.reddit.com: false https://www.reddit.com: false

View file

@ -1,6 +1,6 @@
[FileDialog] [FileDialog]
history=file:///home/chris/Downloads, file:///home/chris/Downloads/Takeout/Contacts/All Contacts, file:///home/chris/Pictures/Newsletter, file:///home/chris/org, file:///home/chris/storage/digikam/Photos/Camera/Camera history=file:///home/chris/Pictures/Newsletter, file:///home/chris/org, file:///home/chris/storage/digikam/Photos/Camera/Camera, file:///home/chris/Pictures, file:///home/chris
lastVisited=file:///home/chris/org lastVisited=file:///home/chris/storage/digikam/Photos/Camera/Camera
qtVersion=5.15.2 qtVersion=5.15.2
shortcuts=file:, file:///home/chris shortcuts=file:, file:///home/chris
sidebarWidth=116 sidebarWidth=116

View file

@ -18,3 +18,4 @@ jelly https://jelly.cochrun.xyz/web/index.html#!/home.html
st http://127.0.0.1:8384/# st http://127.0.0.1:8384/#
ha https://home.cochrun.xyz/lovelace/default_view ha https://home.cochrun.xyz/lovelace/default_view
tfc https://www.tfcconnection.org/ tfc https://www.tfcconnection.org/
nvtfc https://www.facebook.com/NorthernValleyTFC