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")