updates and a lot of em

This commit is contained in:
Chris Cochrun 2022-04-26 12:40:23 -05:00
parent 30cd55aca8
commit bd0cf6ff9b
37 changed files with 618 additions and 96 deletions

View file

@ -1,15 +1,15 @@
;; Standard awesome library|#
(local gears (require "gears"))
(local awful (require "awful"))
(global gears (require "gears"))
(global awful (require "awful"))
(require "awful.autofocus")
;; Widget and layout library
(local wibox (require "wibox"))
(global wibox (require "wibox"))
;; Theme handling library
(local beautiful (require "beautiful"))
(global beautiful (require "beautiful"))
(local xresources (require "beautiful.xresources"))
;; Notification library
(local naughty (require "naughty"))
(local menubar (require "menubar"))
(global naughty (require "naughty"))
(global menubar (require "menubar"))
;; Enable hotkeys help widget for VIM and other apps
;; when client with a matching name is opened:
(local hotkeys_popup (require "awful.hotkeys_popup"))
@ -17,6 +17,10 @@
(local dpi xresources.apply_dpi)
(local ruled (require "ruled"))
(global togglebar (fn []
(let [s (awful.screen.focused {:client true})]
(s.togglebar))))
;; my splits
(local clientrules (require :rules))
(local keybindings (require :keybindings))
@ -52,7 +56,7 @@
;; Import the bling modules and layouts
(local bling (require :bling))
(global bling (require :bling))
;; (local awestore (require "awestore"))
(ruled.notification.connect_signal
@ -104,8 +108,8 @@
;; Table of layouts to cover with awful.layout.inc, order matters.
(set awful.layout.layouts [
bling.layout.mstab
awful.layout.suit.tile
bling.layout.mstab
bling.layout.centered
awful.layout.suit.floating
;; awful.layout.suit.tile.left
@ -183,6 +187,10 @@
;; Each screen has its own tag table.
(awful.tag [ "  " "  " "  " "  " ] s (. awful.layout.layouts 1))
(if (= s.index 1)
(naughty.notification {:title "this is screen 1"})
)
;; Make buffers on all sides so that tiled clients aren't pushed to edges
(set s.padding (dpi 0))
@ -578,11 +586,11 @@
:shape gears.shape.rounded_bar
:bg beautiful.bg_normal
:fg beautiful.fg_normal
:opacity 0.8
:opacity 0.9
:visible true
:screen s }))
(: s.mywibox :struts { :bottom (dpi 50) })
(: s.mywibox :struts { :bottom (dpi 45) })
;; Add widgets to the wibox
(: s.mywibox :setup {
@ -617,8 +625,13 @@
:widget wibox.container.margin
}
})
))
;; (: s.mywibox :visible false)
(set s.togglebar (fn []
(let [v (not s.mywibox.visible)]
(tset s.mywibox :visible v))))
;; (s.togglebar)
))
;; Mouse bindings
(root.buttons (gears.table.join
@ -742,7 +755,7 @@
(awful.spawn.once "picom --experimental-backend")
(awful.spawn.once "/usr/lib/polkit-kde-authentication-agent-1")
(awful.spawn.once "feh --bg-fill /home/chris/Pictures/wallpapers/tech.jpg")
(awful.spawn.once "feh --bg-fill /home/chris/Pictures/wallpapers/darkb-minimal-cross.png")
(awful.spawn.once "bluetoothctl power on")
;; (awful.spawn.once "nextcloud --background")
(awful.spawn.once "rbw-agent")

View file

@ -156,10 +156,6 @@
(awful.key [] "XF86MonBrightnessDown" (fn [] (awful.spawn.with_shell
"light -U 5 && lightget"))
{:description "Decrease monitor brightness by 5%" :group "utilities"})
(awful.key [ modkey ctrl ] "o" (fn [] (awful.spawn
"lightget"))
{:description "get brightness" :group "utilities"})
;; Menubar
;; (awful.key [ modkey ] "p" (fn [] (menubar.show))
;; {:description "show the menubar" :group "launcher"})
@ -210,11 +206,9 @@
;; audio
(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.key [] "XF86AudioRaiseVolume" (fn [] (awful.spawn "volup"))
{: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.key [] "XF86AudioLowerVolume" (fn [] (awful.spawn "voldown"))
{: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"))
@ -250,6 +244,17 @@
(awful.key [modkey shift] "9" (fn [] (awful.spawn "mpvc -t -20"))
{:description "MPV seek backward 20 sec" :group "audio"})
;; Extras
(awful.key [ modkey alt ] "b" (fn [] (togglebar))
{:description "show/hide bar" :group "utilities"})
(awful.key [ modkey ctrl ] "o" (fn [] (awful.spawn "lightget"))
{:description "get brightness" :group "utilities"})
(awful.key [ modkey ctrl ] "b" (fn [] (awful.spawn "batget"))
{:description "get battery" :group "utilities"})
(awful.key [ modkey ctrl ] "t" (fn [] (awful.spawn "timeget"))
{:description "get time" :group "utilities"})
;; Because I don't know much fennel yet I'm doing each one individually
;; View tags only.
(awful.key [ modkey ] "1"

View file

@ -211,7 +211,8 @@
:raise true
:screen awful.screen.preferred
:height (dpi 850)
:width (dpi 1550)
:width (dpi 1450)
:placement awful.placement.centered
}
}
{