Scripts and a lot of other things...
This commit is contained in:
parent
93d99b81db
commit
fda17aea44
18 changed files with 420 additions and 53 deletions
|
@ -65,7 +65,7 @@
|
|||
|
||||
(fn get-volume [?callback]
|
||||
(let [cb (or ?callback (fn [] nil))]
|
||||
(awful.spawn.easy_async_with_shell "pamixer --get-volume" cb)))
|
||||
(awful.spawn.easy_async_with_shell "pamixer --get-volume-human" cb)))
|
||||
|
||||
;; Table of layouts to cover with awful.layout.inc, order matters.
|
||||
(set awful.layout.layouts [
|
||||
|
@ -426,6 +426,6 @@
|
|||
(awful.spawn.with_shell "flameshot")
|
||||
(awful.spawn.with_shell "caffeine")
|
||||
(awful.spawn.with_shell "nextcloud --background")
|
||||
(awful.spawn.with_shell "emacs --daemon")
|
||||
(awful.spawn.with_shell "emacs --with-profile --daemon default")
|
||||
(awful.spawn.with_shell "libinput-gestures-setup start")
|
||||
(awful.spawn.with_shell "bluetoothctl power on")
|
||||
|
|
|
@ -10,6 +10,10 @@
|
|||
(local ctrl "Control")
|
||||
(local alt "Mod1")
|
||||
|
||||
(fn get-volume [?callback]
|
||||
(let [cb (or ?callback (fn [] nil))]
|
||||
(awful.spawn.easy_async_with_shell "pamixer --get-volume-human" cb)))
|
||||
|
||||
(local keybindings
|
||||
{
|
||||
:globalkeys (gears.table.join
|
||||
|
@ -74,7 +78,7 @@
|
|||
{:description "restore minimized" :group "client"})
|
||||
|
||||
;; Prompt
|
||||
(awful.key [ modkey ] "r" (fn [] (: (. (awful.screen.focused) :mypromptbox) :run))
|
||||
(awful.key [ modkey ] "r" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/run.sh"))
|
||||
{:description "run prompt" :group "launcher"})
|
||||
|
||||
(awful.key [ modkey ] "x" (fn []
|
||||
|
@ -90,6 +94,10 @@
|
|||
;; utilities
|
||||
(awful.key [] "Print" (fn [] (awful.spawn "flameshot gui"))
|
||||
{:description "screenshot" :group "utilities"})
|
||||
(awful.key [ modkey ] "." (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/emoji.sh"))
|
||||
{:description "emoji picker" :group "utilities"})
|
||||
(awful.key [ modkey ] "v" (get-volume)
|
||||
{:description "See current volume" :group "audio" })
|
||||
;; Menubar
|
||||
;; (awful.key [ modkey ] "p" (fn [] (menubar.show))
|
||||
;; {:description "show the menubar" :group "launcher"})
|
||||
|
@ -99,6 +107,8 @@
|
|||
{:description "launch dired in new emacs frame" :group "apps" })
|
||||
(awful.key [ modkey ] "i" (fn [] (awful.spawn "emacsclient -c -e '(mu4e)'"))
|
||||
{:description "launch mu4e in new emacs frame" :group "apps" })
|
||||
(awful.key [ modkey shift ] "Return" (fn [] (awful.spawn "emacsclient -c -e '(+eshell/frame)'"))
|
||||
{: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" })
|
||||
;; rofi
|
||||
|
|
|
@ -20,12 +20,15 @@
|
|||
}
|
||||
}
|
||||
|
||||
;; floating and centered
|
||||
;; floating and centered videos from mpv or firefox pnp
|
||||
{
|
||||
:rule_any {
|
||||
:class [
|
||||
"mpv"
|
||||
]
|
||||
:name [
|
||||
"Picture-in-Picture"
|
||||
]
|
||||
}
|
||||
:properties {
|
||||
:floating true
|
||||
|
@ -35,6 +38,23 @@
|
|||
:placement (+ awful.placement.no_offscreen awful.placement.centered)
|
||||
}
|
||||
}
|
||||
;; sxiv floating on main screen for quick picture viewing
|
||||
{
|
||||
:rule_any {
|
||||
:class [
|
||||
"sxiv"
|
||||
"Sxiv"
|
||||
]
|
||||
}
|
||||
:properties {
|
||||
:floating true
|
||||
:raise true
|
||||
:height 900
|
||||
:width 1500
|
||||
:placement (+ awful.placement.no_offscreen awful.placement.centered)
|
||||
}
|
||||
}
|
||||
;; Tell qb to open primarily on the secondary monitor
|
||||
{
|
||||
:rule_any {
|
||||
:class [
|
||||
|
@ -45,6 +65,7 @@
|
|||
:screen (screen.count)
|
||||
}
|
||||
}
|
||||
;; floating windows
|
||||
{
|
||||
:rule_any {
|
||||
:class [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue