adding a lot of script changes
This commit is contained in:
parent
161abbf381
commit
d25a75a078
15 changed files with 237 additions and 406 deletions
|
@ -456,7 +456,7 @@
|
|||
(set s.myrightwidgets {
|
||||
1 {
|
||||
:layout wibox.layout.fixed.horizontal
|
||||
1 s.wttrwidget
|
||||
;; 1 s.wttrwidget
|
||||
2 s.mailwidget
|
||||
3 s.cpuwidget
|
||||
4 s.volumewidget
|
||||
|
@ -594,6 +594,7 @@
|
|||
(not c.size_hints.program_position))
|
||||
;; Prevent clients from being unreachable after screen count changes.
|
||||
(awful.placement.no_offscreen c))
|
||||
;; MPV wasn't centering right
|
||||
(when (= c.class "mpv") (awful.placement.centered c))
|
||||
(awful.client.focus.byidx 1)
|
||||
(: c :activate [])))
|
||||
|
|
|
@ -51,8 +51,8 @@
|
|||
(awful.key [ modkey ] "u" awful.client.urgent.jumpto
|
||||
{:description "jump to urgent client" :group "client"})
|
||||
(awful.key [ modkey ] "Tab" (fn []
|
||||
(awful.client.focus.history.previous)
|
||||
(when client.focus (: client.focus :raise)))
|
||||
(awful.client.focus.history.previous)
|
||||
(when client.focus (: client.focus :raise)))
|
||||
{:description "go back" :group "client"})
|
||||
|
||||
;; Standard program
|
||||
|
@ -89,9 +89,9 @@
|
|||
(awful.key [ modkey shift ] "space" (fn [] (awful.layout.inc -1))
|
||||
{:description "select previous" :group "layout"})
|
||||
(awful.key [ modkey ctrl ] "n" (fn []
|
||||
(local c (awful.client.restore))
|
||||
(when c ;; Focus restored client
|
||||
(: c :emit_signal "request::activate" "key.unminimize" {:raise true})))
|
||||
(local c (awful.client.restore))
|
||||
(when c ;; Focus restored client
|
||||
(: c :emit_signal "request::activate" "key.unminimize" {:raise true})))
|
||||
{:description "restore minimized" :group "client"})
|
||||
|
||||
;; Prompt
|
||||
|
@ -99,13 +99,13 @@
|
|||
{:description "run prompt" :group "launcher"})
|
||||
|
||||
(awful.key [ modkey shift ctrl ] "x" (fn []
|
||||
(let [fscr (awful.screen.focused)]
|
||||
(awful.prompt.run {
|
||||
:prompt "Run Lua code: "
|
||||
:textbox fscr.mypromptbox.widget
|
||||
:exe_callback awful.util.eval
|
||||
:history_path (.. (awful.util.get_cache_dir) "/history_eval")
|
||||
})))
|
||||
(let [fscr (awful.screen.focused)]
|
||||
(awful.prompt.run {
|
||||
:prompt "Run Lua code: "
|
||||
:textbox fscr.mypromptbox.widget
|
||||
:exe_callback awful.util.eval
|
||||
:history_path (.. (awful.util.get_cache_dir) "/history_eval")
|
||||
})))
|
||||
{:description "lua execute prompt" :group "awesome"})
|
||||
|
||||
;; utilities
|
||||
|
@ -128,8 +128,6 @@
|
|||
;; 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 alt ] "d" (fn [] (awful.spawn "dolphin"))
|
||||
{:description "dolphin" :group "apps" })
|
||||
(awful.key [ modkey shift ] "d" (fn [] (awful.spawn "dolphin"))
|
||||
{:description "launch dolphin file browser" :group "apps" })
|
||||
(awful.key [ modkey ] "x" (fn [] (awful.spawn "emacsclient -c -e '(org-capture)'"))
|
||||
|
@ -147,11 +145,11 @@
|
|||
{:description "launch eshell in new emacs frame" :group "apps" })
|
||||
(awful.key [ modkey ] "e" (fn [] (awful.spawn "emacsclient -c -a 'emacs'"))
|
||||
{:description "launch new emacs frame" :group "apps" })
|
||||
(awful.key [ modkey ] "p" (fn [] (awful.spawn "rofi-rbw"))
|
||||
(awful.key [ modkey ] "p" (fn [] (awful.spawn "rofi-pass"))
|
||||
{:description "select pass" :group "apps" })
|
||||
(awful.key [ modkey shift ] "w" (fn [] (awful.spawn "libreoffice --writer"))
|
||||
{:description "Open Writer" :group "apps" })
|
||||
(awful.key [modkey] "b" (fn [] (awful.spawn "nyxt"))
|
||||
(awful.key [modkey] "b" (fn [] (awful.spawn "qutebrowser"))
|
||||
{:description "launch browser" :group "apps"})
|
||||
;; rofi
|
||||
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/launcher.sh"))
|
||||
|
@ -172,16 +170,16 @@
|
|||
(awful.key [modkey] "a" (fn [] (awful.spawn "alacritty --class pulsemixer -e pulsemixer"))
|
||||
{:description "launch pulsemixer" :group "audio"})
|
||||
(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"})
|
||||
(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"})
|
||||
(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"})
|
||||
(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"})
|
||||
(awful.key [modkey] "]" (fn [] (awful.spawn "mpvc -x 0.10"))
|
||||
{:description "MPV speed up by .10" :group "audio"})
|
||||
|
@ -198,153 +196,153 @@
|
|||
;; View tags only.
|
||||
(awful.key [ modkey ] "1"
|
||||
(fn []
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 1)]
|
||||
(when tag
|
||||
(: tag :view_only))))
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 1)]
|
||||
(when tag
|
||||
(: tag :view_only))))
|
||||
{:description "view tag #1" :group "tag"})
|
||||
(awful.key [ modkey ] "2"
|
||||
(fn []
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 2)]
|
||||
(when tag
|
||||
(: tag :view_only))))
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 2)]
|
||||
(when tag
|
||||
(: tag :view_only))))
|
||||
{:description "view tag #2" :group "tag"})
|
||||
(awful.key [ modkey ] "3"
|
||||
(fn []
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 3)]
|
||||
(when tag
|
||||
(: tag :view_only))))
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 3)]
|
||||
(when tag
|
||||
(: tag :view_only))))
|
||||
{:description "view tag #3" :group "tag"})
|
||||
(awful.key [ modkey ] "4"
|
||||
(fn []
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 4)]
|
||||
(when tag
|
||||
(: tag :view_only))))
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 4)]
|
||||
(when tag
|
||||
(: tag :view_only))))
|
||||
{:description "view tag #4" :group "tag"})
|
||||
(awful.key [] "XF86Tools"
|
||||
(fn []
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 1)]
|
||||
(when tag
|
||||
(: tag :view_only))))
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 1)]
|
||||
(when tag
|
||||
(: tag :view_only))))
|
||||
{:description "view tag #1" :group "tag"})
|
||||
(awful.key [] "XF86Launch5"
|
||||
(fn []
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 2)]
|
||||
(when tag
|
||||
(: tag :view_only))))
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 2)]
|
||||
(when tag
|
||||
(: tag :view_only))))
|
||||
{:description "view tag #2" :group "tag"})
|
||||
(awful.key [] "XF86Launch6"
|
||||
(fn []
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 3)]
|
||||
(when tag
|
||||
(: tag :view_only))))
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 3)]
|
||||
(when tag
|
||||
(: tag :view_only))))
|
||||
{:description "view tag #3" :group "tag"})
|
||||
(awful.key [] "XF86Launch7"
|
||||
(fn []
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 4)]
|
||||
(when tag
|
||||
(: tag :view_only))))
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 4)]
|
||||
(when tag
|
||||
(: tag :view_only))))
|
||||
{:description "view tag #4" :group "tag"})
|
||||
;; Move client to tag
|
||||
(awful.key [ modkey shift ] "1"
|
||||
(fn []
|
||||
(when client.focus
|
||||
(let [tag (. client.focus.screen.tags 1)]
|
||||
(when tag
|
||||
(: client.focus :move_to_tag tag)))))
|
||||
(when client.focus
|
||||
(let [tag (. client.focus.screen.tags 1)]
|
||||
(when tag
|
||||
(: client.focus :move_to_tag tag)))))
|
||||
{:description "move focused client to tag #1" :group "tag"})
|
||||
(awful.key [ modkey shift ] "2"
|
||||
(fn []
|
||||
(when client.focus
|
||||
(let [tag (. client.focus.screen.tags 2)]
|
||||
(when tag
|
||||
(: client.focus :move_to_tag tag)))))
|
||||
(when client.focus
|
||||
(let [tag (. client.focus.screen.tags 2)]
|
||||
(when tag
|
||||
(: client.focus :move_to_tag tag)))))
|
||||
{:description "move focused client to tag #2" :group "tag"})
|
||||
(awful.key [ modkey shift ] "3"
|
||||
(fn []
|
||||
(when client.focus
|
||||
(let [tag (. client.focus.screen.tags 3)]
|
||||
(when tag
|
||||
(: client.focus :move_to_tag tag)))))
|
||||
(when client.focus
|
||||
(let [tag (. client.focus.screen.tags 3)]
|
||||
(when tag
|
||||
(: client.focus :move_to_tag tag)))))
|
||||
{:description "move focused client to tag #3" :group "tag"})
|
||||
(awful.key [ modkey shift ] "4"
|
||||
(fn []
|
||||
(when client.focus
|
||||
(let [tag (. client.focus.screen.tags 4)]
|
||||
(when tag
|
||||
(: client.focus :move_to_tag tag)))))
|
||||
(when client.focus
|
||||
(let [tag (. client.focus.screen.tags 4)]
|
||||
(when tag
|
||||
(: client.focus :move_to_tag tag)))))
|
||||
{:description "move focused client to tag #4" :group "tag"})
|
||||
;; Toggle tag display. Not working yet, can't pinpoint the problem.
|
||||
(awful.key [ modkey ctrl ] "1"
|
||||
(fn []
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 1)]
|
||||
(when tag
|
||||
(awful.tag.viewtoggle tag))))
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 1)]
|
||||
(when tag
|
||||
(awful.tag.viewtoggle tag))))
|
||||
{:description "toggle tag #1" :group "tag"})
|
||||
(awful.key [ modkey ctrl ] "2"
|
||||
(fn []
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 2)]
|
||||
(when tag
|
||||
(awful.tag.viewtoggle tag))))
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 2)]
|
||||
(when tag
|
||||
(awful.tag.viewtoggle tag))))
|
||||
{:description "toggle tag #2" :group "tag"})
|
||||
(awful.key [ modkey ctrl ] "3"
|
||||
(fn []
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 3)]
|
||||
(when tag
|
||||
(awful.tag.viewtoggle tag))))
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 3)]
|
||||
(when tag
|
||||
(awful.tag.viewtoggle tag))))
|
||||
{:description "toggle tag #3" :group "tag"})
|
||||
(awful.key [ modkey ctrl ] "4"
|
||||
(fn []
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 4)]
|
||||
(when tag
|
||||
(awful.tag.viewtoggle tag))))
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 4)]
|
||||
(when tag
|
||||
(awful.tag.viewtoggle tag))))
|
||||
{:description "toggle tag #4" :group "tag"})
|
||||
(awful.key [ modkey ] "0"
|
||||
(fn []
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 10)]
|
||||
(when tag
|
||||
(awful.tag.viewtoggle tag))))
|
||||
(let [screen (awful.screen.focused)
|
||||
tag (. screen.tags 10)]
|
||||
(when tag
|
||||
(awful.tag.viewtoggle tag))))
|
||||
{:description "toggle scratchpad" :group "tag"})
|
||||
;; Toggle tag on focused client.
|
||||
(awful.key [ modkey ctrl shift ] "1"
|
||||
(fn []
|
||||
(when client.focus
|
||||
(let [tag (. client.focus.screen.tags 1)]
|
||||
(when tag
|
||||
(: client.focus :toggle_tag tag)))))
|
||||
(when client.focus
|
||||
(let [tag (. client.focus.screen.tags 1)]
|
||||
(when tag
|
||||
(: client.focus :toggle_tag tag)))))
|
||||
{:description "toggle focused client on tag #1" :group "tag"})
|
||||
(awful.key [ modkey ctrl shift ] "2"
|
||||
(fn []
|
||||
(when client.focus
|
||||
(let [tag (. client.focus.screen.tags 2)]
|
||||
(when tag
|
||||
(: client.focus :toggle_tag tag)))))
|
||||
(when client.focus
|
||||
(let [tag (. client.focus.screen.tags 2)]
|
||||
(when tag
|
||||
(: client.focus :toggle_tag tag)))))
|
||||
{:description "toggle focused client on tag #2" :group "tag"})
|
||||
(awful.key [ modkey ctrl shift ] "3"
|
||||
(fn []
|
||||
(when client.focus
|
||||
(let [tag (. client.focus.screen.tags 3)]
|
||||
(when tag
|
||||
(: client.focus :toggle_tag tag)))))
|
||||
(when client.focus
|
||||
(let [tag (. client.focus.screen.tags 3)]
|
||||
(when tag
|
||||
(: client.focus :toggle_tag tag)))))
|
||||
{:description "toggle focused client on tag #3" :group "tag"})
|
||||
(awful.key [ modkey ctrl shift ] "4"
|
||||
(fn []
|
||||
(when client.focus
|
||||
(let [tag (. client.focus.screen.tags 4)]
|
||||
(when tag
|
||||
(: client.focus :toggle_tag tag)))))
|
||||
(when client.focus
|
||||
(let [tag (. client.focus.screen.tags 4)]
|
||||
(when tag
|
||||
(: client.focus :toggle_tag tag)))))
|
||||
{:description "toggle focused client on tag #4" :group "tag"})
|
||||
)
|
||||
|
||||
|
@ -363,9 +361,9 @@
|
|||
(awful.key [ modkey ] "t" (fn [c] (set c.ontop (not c.ontop)))
|
||||
{:description "toggle keep on top" :group "client"})
|
||||
(awful.key [ modkey ] "n" (fn [c]
|
||||
;; The client currently has the input focus, so it cannot be
|
||||
;; minimized, since minimized clients can't have the focus.
|
||||
(set c.minimized true))
|
||||
;; The client currently has the input focus, so it cannot be
|
||||
;; minimized, since minimized clients can't have the focus.
|
||||
(set c.minimized true))
|
||||
{:description "minimize" :group "client"})
|
||||
(awful.key [ modkey ] "m" (fn [c] (set c.maximized (not c.maximized)) (: c :raise))
|
||||
{:description "(un)maximize" :group "client"})
|
||||
|
@ -377,11 +375,11 @@
|
|||
:clientbuttons (gears.table.join
|
||||
(awful.button [] 1 (fn [c] (: c :emit_signal "request::activate" "mouse_click" {:raise true})))
|
||||
(awful.button [ modkey ] 1 (fn [c]
|
||||
(: c :emit_signal "request::activate" "mouse_click" {:raise true})
|
||||
(awful.mouse.client.move c)))
|
||||
(: c :emit_signal "request::activate" "mouse_click" {:raise true})
|
||||
(awful.mouse.client.move c)))
|
||||
(awful.button [ modkey ] 3 (fn [c]
|
||||
(: c :emit_signal "request::activate" "mouse_click" {:raise true})
|
||||
(awful.mouse.client.resize c))))
|
||||
(: c :emit_signal "request::activate" "mouse_click" {:raise true})
|
||||
(awful.mouse.client.resize c))))
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue