All kinds of idk changes with idk stuff!

This commit is contained in:
Chris Cochrun 2022-02-01 09:25:01 -06:00
parent 9e5f0ad759
commit 131bb57ac3
25 changed files with 245 additions and 68 deletions

@ -1 +1 @@
Subproject commit 048cf41e0aa5a391948d62e6168d6e54279cf627
Subproject commit 0fb85341916b6de1c5cd6ddf3e8472292a93a303

View file

@ -52,11 +52,11 @@
(local bling (require "bling"))
;; (local awestore (require "awestore"))
(set naughty.config.defaults.position "top_middle")
(set naughty.config.defaults.position "bottom_middle")
(set naughty.config.defaults.margin 10)
(set naughty.config.defaults.border_width 0)
(set naughty.config.defaults.hover_timeout 5)
(set naughty.config.defaults.max_width (dpi 500))
(set naughty.config.defaults.hover_timeout 3)
(set naughty.config.defaults.max_width (dpi 700))
;; {
;; :rule { }
@ -87,12 +87,12 @@
(if (= "syl\n" stdout)
(global laptop true)
(global laptop false))))
(local laptop false)
(local laptop true)
;; Table of layouts to cover with awful.layout.inc, order matters.
(set awful.layout.layouts [
awful.layout.suit.tile
bling.layout.mstab
awful.layout.suit.tile
bling.layout.centered
awful.layout.suit.floating
;; awful.layout.suit.tile.left
@ -111,6 +111,8 @@
;; awful.layout.suit.corner.se
])
;; (set mstab_tabbar_height 500)
;; Menu
;; Create a launcher widget and a main menu
(global myawesomemenu [
@ -169,7 +171,7 @@
(awful.tag [ "  " "  " "  " "  " ] s (. awful.layout.layouts 1))
;; Make buffers on all sides so that tiled clients aren't pushed to edges
(set s.padding (dpi 10))
(set s.padding (dpi 0))
;; Create a promptbox for each screen
(set s.mypromptbox (awful.widget.prompt))
@ -358,6 +360,23 @@
:widget wibox.container.margin
:right (dpi 5)})
(set s.brighttext (awful.widget.watch "light" 15))
(set s.brightspace (wibox.widget.textbox " "))
(set s.brighticon (wibox.widget.textbox " ﯧ"))
(set s.brightwidget {1 {1 {1 (wibox.widget {
1 s.brighticon
2 s.brighttext
3 s.brightspace
:layout wibox.layout.fixed.horizontal})
:widget wibox.container.margin
:left (dpi 5)}
:widget wibox.container.background
:shape gears.shape.rounded_bar
:bg beautiful.transparent
:fg beautiful.base0B}
:widget wibox.container.margin
:right (dpi 5)})
(set s.volumetext (awful.widget.watch "pamixer --get-volume-human" 0.5))
(set s.mictext (awful.widget.watch "pamixer --default-source --get-volume-human" 1))
(set s.volumeicon (wibox.widget.textbox " "))
@ -512,15 +531,15 @@
(set s.myrightwidgets {
1 {
:layout wibox.layout.fixed.horizontal
1 s.pingwidget
2 s.netwidget
3 s.mailwidget
4 s.memwidget
5 s.cpuwidget
6 s.volumewidget
7 (if laptop s.batterywidget s.myemptywidget)
8 (if (= s.index 1) s.mysystray)
9 s.mylayoutbox
;;1 s.pingwidget
1 s.brightwidget
2 s.mailwidget
3 s.memwidget
4 s.cpuwidget
5 s.volumewidget
6 (if laptop s.batterywidget s.myemptywidget)
7 (if (= s.index 1) s.mysystray)
8 s.mylayoutbox
}
:widget wibox.container.margin
:top (dpi 1)
@ -528,7 +547,7 @@
})
(local yoffset (dpi 45)) ;; variables to be used for placing the wibox
(local xoffset (dpi 26))
(local xoffset (dpi 16))
;; Create the wibox
(set s.mywibox (wibox {;; since we are using a wibox we have a lot we need to set
;; as opposed to what we normally need to do with a wibar
@ -537,7 +556,7 @@
:y (- s.geometry.height yoffset)
:height (dpi 33)
:width (- s.geometry.width (* xoffset 2))
:ontop false
:ontop true
:stretch false
:type "dock"
:shape gears.shape.rounded_bar
@ -546,7 +565,7 @@
:opacity 0.9
:screen s }))
(: s.mywibox :struts { :bottom (dpi 40) })
(: s.mywibox :struts { :bottom (dpi 50) })
;; Add widgets to the wibox
(: s.mywibox :setup {
@ -671,29 +690,14 @@
(: c :activate [])))
(client.connect_signal "property::maximized"
(fn [c]
(let [s c.screen]
(set s.mywibox (wibox {;; since we are using a wibox we have a lot we need to set
;; as opposed to what we normally need to do with a wibar
:position "bottom"
:x 0
:y s.geometry.height
:height (dpi 33)
:width s.geometry.width
:ontop false
:stretch false
:type "dock"
:shape gears.shape.rectangle
:bg beautiful.bg_normal
:fg beautiful.fg_normal
:opacity 0.9})))))
;; make fullscreen clients no longer rounded windows
;; make fullscreen clients no longer rounded and back afterwards
(client.connect_signal "property::fullscreen"
(fn [c]
(set c.shape (fn [cr w h]
(gears.shape.rectangle cr w h)))))
(if c.fullscreen
(set c.shape (fn [cr w h]
(gears.shape.rectangle cr w h)))
(set c.shape (fn [cr w h]
(gears.shape.rounded_rect cr w h (dpi 15)))))))
(client.connect_signal "focus" (fn [c] (set c.border_color beautiful.border_focus)))
(client.connect_signal "unfocus" (fn [c] (set c.border_color beautiful.border_normal)))
@ -716,4 +720,3 @@
(awful.spawn.once "nm-applet")
(awful.spawn.once "xcape -e 'Super_L=Super_L|Control_L|Escape'")
(awful.spawn.once "xcape -e 'Alt_L=Super_L|W'")
;; (awful.spawn.once "latte-dock")

View file

@ -170,7 +170,7 @@
{: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 "fflof"))
(awful.key [modkey] "b" (fn [] (awful.spawn "qblof"))
{:description "launch browser" :group "apps"})
;; rofi
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh"))

View file

@ -182,6 +182,9 @@
"Arandr"
"gcr-prompter"
"ffplay"
"Junction"
"junction"
"pinentry-qt"
]
:name [
"Event Tester"
@ -192,7 +195,11 @@
:role [
"pop-up"
"GtkFileChooserDialog"
]}
]
:instance [
"junction"
"Junction"
]}
:properties {
:floating true
:raise true
@ -216,6 +223,12 @@
"OpenLP"
]
}
:except_any {
:name [
"Configure OpenLP"
"OpenLP - "
]
}
:properties {
:fullscreen true
:raise true

View file

@ -10,6 +10,7 @@ local gears = require('gears')
local gfs = require("gears.filesystem")
local themes_path = gfs.get_themes_dir()
local wallpaperdir = "/home/chris/Pictures/wallpapers/"
local bling = require "bling"
local theme = {}
@ -122,11 +123,10 @@ theme.mstab_dont_resize_slaves = false -- whether the tabbed stack windows
-- If you want a custom value. Set it to the number of pixels (int)
theme.mstab_tabbar_height = 400
theme.tabbar_radius = 40
theme.tabbar_bg_normal = theme.bg_normal
theme.tabbar_fg_normal = theme.fg_normal
theme.tabbar_bg_focus = theme.bg_focus
theme.tabbar_fg_focus = theme.fg_focus
-- theme.tabbar_bg_normal = theme.bg_normal
-- theme.tabbar_fg_normal = theme.fg_normal
-- theme.tabbar_bg_focus = theme.bg_focus
-- theme.tabbar_fg_focus = theme.fg_focus
theme.mstab_border_radius = 50 -- border radius of the tabbar
theme.mstab_bar_padding = "default" -- how much padding there should be between clients and your tabbar