Merge branch 'master' of gitlab.com:chriscochrun/dotfiles
This commit is contained in:
commit
f3217ceb09
12 changed files with 61 additions and 3046 deletions
|
@ -4,7 +4,7 @@
|
|||
(local hotkeys_popup (require "awful.hotkeys_popup"))
|
||||
|
||||
(local bling (require "bling"))
|
||||
(local awestore (require "awestore"))
|
||||
;; (local awestore (require "awestore"))
|
||||
|
||||
(local terminal "alacritty")
|
||||
(local modkey "Mod4")
|
||||
|
@ -13,19 +13,20 @@
|
|||
(local alt "Mod1")
|
||||
|
||||
;; adding an org-agenda scratchpad
|
||||
(local anim-y (awestore.tweened 1100 { :duration 200 :easing awestore.easing.cubic_in_out }))
|
||||
(local anim-x (awestore.tweened 1920 { :duration 200 :easing awestore.easing.cubic_in_out }))
|
||||
;; (local anim-y (awestore.tweened 1100 { :duration 200 :easing awestore.easing.cubic_in_out }))
|
||||
;; (local anim-x (awestore.tweened 1920 { :duration 200 :easing awestore.easing.cubic_in_out }))
|
||||
|
||||
(local agenda-scratch (bling.module.scratchpad {
|
||||
:command "emacsclient -e '(chris/org-agenda-awesome)'"
|
||||
:rule [:name "*Org Agenda(a)*"]
|
||||
:sticky true
|
||||
:autoclose true
|
||||
:floating true
|
||||
:geometry {:height 900 :width 1200}
|
||||
:reapply true
|
||||
:dont_focus_before_close true
|
||||
:awestore {:x anim-x :y anim-y}}))
|
||||
(local agenda-scratch (bling.module.scratchpad:new {
|
||||
:command "emacsclient -e '(chris/org-agenda)'"
|
||||
:rule [:name "org-agenda"]
|
||||
:sticky true
|
||||
:autoclose true
|
||||
:floating true
|
||||
:geometry {:height 900 :width 1200}
|
||||
:reapply true
|
||||
:dont_focus_before_close true
|
||||
;; :awestore {:x anim-x :y anim-y}
|
||||
}))
|
||||
|
||||
(fn get-volume [?callback]
|
||||
(let [cb (or ?callback (fn [] nil))]
|
||||
|
@ -33,8 +34,8 @@
|
|||
|
||||
(awful.spawn.easy_async "cat /etc/hostname" (fn [ stdout stderr reason exit_code ]
|
||||
(if (= "syl\n" stdout)
|
||||
(global bwmenu "bwmenu -- -config /home/chris/.dotfiles/rofi/launchers-git/laptop.rasi")
|
||||
(global bwmenu "bwmenu -- -config /home/chris/.dotfiles/rofi/launchers-git/desktop.rasi"))))
|
||||
(global bwmenu "bwmenu -- -config /home/chris/.config/rofi/launchers-git/laptop.rasi")
|
||||
(global bwmenu "bwmenu -- -config /home/chris/.config/rofi/launchers-git/desktop.rasi"))))
|
||||
|
||||
(local keybindings
|
||||
{
|
||||
|
@ -65,8 +66,8 @@
|
|||
{:description "focus the next screen" :group "screen"})
|
||||
(awful.key [ modkey ] "h" (fn [] (awful.screen.focus_relative -1))
|
||||
{:description "focus the previous screen" :group "screen"})
|
||||
(awful.key [ modkey ] "u" awful.client.urgent.jumpto
|
||||
{:description "jump to urgent client" :group "client"})
|
||||
;; (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)))
|
||||
|
@ -112,7 +113,7 @@
|
|||
{:description "restore minimized" :group "client"})
|
||||
|
||||
;; Prompt
|
||||
(awful.key [ modkey ] "Menu" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/run.sh"))
|
||||
(awful.key [ modkey ] "Menu" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/run.sh"))
|
||||
{:description "run prompt" :group "launcher"})
|
||||
|
||||
(awful.key [ modkey shift ctrl ] "x" (fn []
|
||||
|
@ -130,7 +131,7 @@
|
|||
{:description "screenshot" :group "utilities"})
|
||||
(awful.key [modkey shift] "p" (fn [] (awful.spawn "flameshot gui"))
|
||||
{:description "screenshot" :group "utilities"})
|
||||
(awful.key [ modkey ] "." (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/emoji.sh"))
|
||||
(awful.key [ modkey ] "." (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/emoji.sh"))
|
||||
{:description "emoji picker" :group "utilities"})
|
||||
(awful.key [] "XF86MonBrightnessUp" (fn [] (awful.spawn
|
||||
"light -A 5"))
|
||||
|
@ -150,7 +151,7 @@
|
|||
(awful.key [ modkey ] "x" (fn [] (awful.spawn "emacsclient -c -e '(org-capture)'"
|
||||
{:floating true :placement awful.placement.centered :class "org-agenda" :instance "org-agenda"}))
|
||||
{:description "launch scratchpad in new emacs frame" :group "apps" })
|
||||
(awful.key [ modkey ] "'" (fn [] (awful.spawn "emacslient -e '(chris/org-agenda)'"))
|
||||
(awful.key [ modkey ] "'" (fn [] (awful.spawn "agenda-scratch"))
|
||||
{:description "launch org-agenda in new emacs frame" :group "apps" })
|
||||
(awful.key [ modkey alt ] "m" (fn [] (awful.spawn "emacsclient -c -e '(org-roam-capture)'"))
|
||||
{:description "launch org-roam-capture in new emacs frame" :group "apps" })
|
||||
|
@ -169,9 +170,11 @@
|
|||
(awful.key [modkey] "b" (fn [] (awful.spawn "nyxt"))
|
||||
{:description "launch browser" :group "apps"})
|
||||
;; rofi
|
||||
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/launcher.sh"))
|
||||
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh"))
|
||||
{:description "launch rofi" :group "launcher"})
|
||||
(awful.key [modkey] "w" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/windows.sh"))
|
||||
(awful.key [modkey alt] "space" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh"))
|
||||
{:description "launch rofi" :group "launcher"})
|
||||
(awful.key [modkey] "w" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/windows.sh"))
|
||||
{:description "launch rofi window switcher" :group "launcher"})
|
||||
(awful.key [modkey shift] "b" (fn [] (awful.spawn bwmenu))
|
||||
{:description "launch rofi bitwarden selector" :group "launcher"})
|
||||
|
@ -377,6 +380,8 @@
|
|||
{:description "move to screen" :group "client"})
|
||||
(awful.key [ modkey ] "t" (fn [c] (set c.ontop (not c.ontop)))
|
||||
{:description "toggle keep on top" :group "client"})
|
||||
(awful.key [ modkey ] "u" (fn [c] (set c.sticky (not c.sticky)))
|
||||
{: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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue