Adding a lot of aWM changes
This commit is contained in:
parent
63b367dbb4
commit
7e553b8b7b
|
@ -1 +1 @@
|
||||||
Subproject commit 2cb0c54ebe6aea8c133da8259fd44b40ae94b9eb
|
Subproject commit ae211c2cae257a19cf2aed3faeb76959ad714da9
|
100
awesome/init.fnl
100
awesome/init.fnl
|
@ -48,7 +48,8 @@
|
||||||
(beautiful.init "/home/chris/.config/awesome/theme.lua")
|
(beautiful.init "/home/chris/.config/awesome/theme.lua")
|
||||||
|
|
||||||
;; Import the bling modules and layouts
|
;; Import the bling modules and layouts
|
||||||
;;(local bling (require "bling"))
|
(local bling (require "bling"))
|
||||||
|
;;(local awestore (require "awestore"))
|
||||||
|
|
||||||
;; This is used later as the default terminal and editor to run.
|
;; This is used later as the default terminal and editor to run.
|
||||||
(var terminal "alacritty")
|
(var terminal "alacritty")
|
||||||
|
@ -76,7 +77,7 @@
|
||||||
|
|
||||||
;; Table of layouts to cover with awful.layout.inc, order matters.
|
;; Table of layouts to cover with awful.layout.inc, order matters.
|
||||||
(set awful.layout.layouts [
|
(set awful.layout.layouts [
|
||||||
;;bling.layout.mstab
|
bling.layout.mstab
|
||||||
awful.layout.suit.tile
|
awful.layout.suit.tile
|
||||||
;;bling.layout.centered
|
;;bling.layout.centered
|
||||||
awful.layout.suit.floating
|
awful.layout.suit.floating
|
||||||
|
@ -156,38 +157,38 @@
|
||||||
;; Make buffers on all sides so that tiled clients aren't pushed to edges
|
;; Make buffers on all sides so that tiled clients aren't pushed to edges
|
||||||
(set s.padding (dpi 10))
|
(set s.padding (dpi 10))
|
||||||
|
|
||||||
;; Create a promptbox for each screen
|
;; Create a promptbox for each screen
|
||||||
(set s.mypromptbox (awful.widget.prompt))
|
(set s.mypromptbox (awful.widget.prompt))
|
||||||
;; Create an imagebox widget which will contain an icon indicating which layout we're using.
|
;; Create an imagebox widget which will contain an icon indicating which layout we're using.
|
||||||
;; We need one layoutbox per screen.
|
;; We need one layoutbox per screen.
|
||||||
(set s.mylayoutbox (awful.widget.layoutbox s))
|
(set s.mylayoutbox (awful.widget.layoutbox s))
|
||||||
(: s.mylayoutbox :buttons (gears.table.join
|
(: s.mylayoutbox :buttons (gears.table.join
|
||||||
(awful.button [] 1 (fn [] (awful.layout.inc 1 s awful.layout.layouts)))
|
(awful.button [] 1 (fn [] (awful.layout.inc 1 s awful.layout.layouts)))
|
||||||
(awful.button [] 3 (fn [] (awful.layout.inc -1 s)))
|
(awful.button [] 3 (fn [] (awful.layout.inc -1 s)))
|
||||||
(awful.button [] 4 (fn [] (awful.layout.inc 1 s)))
|
(awful.button [] 4 (fn [] (awful.layout.inc 1 s)))
|
||||||
(awful.button [] 5 (fn [] (awful.layout.inc -1 s)))))
|
(awful.button [] 5 (fn [] (awful.layout.inc -1 s)))))
|
||||||
|
|
||||||
;; Create a taglist widget
|
;; Create a taglist widget
|
||||||
(set s.mytaglist (awful.widget.taglist {
|
(set s.mytaglist (awful.widget.taglist {
|
||||||
:screen s
|
:screen s
|
||||||
:filter awful.widget.taglist.filter.all
|
:filter awful.widget.taglist.filter.all
|
||||||
:buttons taglist_buttons
|
:buttons taglist_buttons
|
||||||
:style {
|
:style {
|
||||||
:bg_focus beautiful.bg_focus
|
:bg_focus beautiful.bg_focus
|
||||||
:fg_focus beautiful.base01
|
:fg_focus beautiful.base01
|
||||||
:bg_occupied beautiful.bg_normal
|
:bg_occupied beautiful.bg_normal
|
||||||
:bg_empty beautiful.bg_normal
|
:bg_empty beautiful.bg_normal
|
||||||
}
|
}
|
||||||
:layout {
|
:layout {
|
||||||
:spacing (dpi 5)
|
:spacing (dpi 5)
|
||||||
:spacing_widget {
|
:spacing_widget {
|
||||||
:valign "center"
|
:valign "center"
|
||||||
:halign "center"
|
:halign "center"
|
||||||
:widget wibox.container.place
|
:widget wibox.container.place
|
||||||
}
|
}
|
||||||
:layout wibox.layout.flex.horizontal
|
:layout wibox.layout.flex.horizontal
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
|
||||||
;; (set s.mytaglistbg ( {
|
;; (set s.mytaglistbg ( {
|
||||||
;; 1 {
|
;; 1 {
|
||||||
|
@ -383,7 +384,6 @@
|
||||||
2 s.cputext
|
2 s.cputext
|
||||||
3 s.cpuspace
|
3 s.cpuspace
|
||||||
:layout wibox.layout.fixed.horizontal
|
:layout wibox.layout.fixed.horizontal
|
||||||
:fg beautiful.base0B
|
|
||||||
})
|
})
|
||||||
:widget wibox.container.margin
|
:widget wibox.container.margin
|
||||||
:left (dpi 9)}
|
:left (dpi 9)}
|
||||||
|
@ -403,6 +403,23 @@
|
||||||
2 s.mailtext
|
2 s.mailtext
|
||||||
3 s.mailspace
|
3 s.mailspace
|
||||||
:layout wibox.layout.fixed.horizontal
|
:layout wibox.layout.fixed.horizontal
|
||||||
|
})
|
||||||
|
:widget wibox.container.margin
|
||||||
|
:left (dpi 9)}
|
||||||
|
:widget wibox.container.background
|
||||||
|
:shape gears.shape.rounded_bar
|
||||||
|
:bg beautiful.bg_normal
|
||||||
|
:fg beautiful.base0C}
|
||||||
|
:widget wibox.container.margin
|
||||||
|
:right (dpi 10)})
|
||||||
|
|
||||||
|
(set s.wttrtext (awful.widget.watch "wttr" 1200))
|
||||||
|
(set s.wttrspace (wibox.widget.textbox " "))
|
||||||
|
|
||||||
|
(set s.wttrwidget { 1 { 1 { 1 (wibox.widget {
|
||||||
|
1 s.wttrtext
|
||||||
|
2 s.wttrspace
|
||||||
|
:layout wibox.layout.fixed.horizontal
|
||||||
:fg beautiful.base0B
|
:fg beautiful.base0B
|
||||||
})
|
})
|
||||||
:widget wibox.container.margin
|
:widget wibox.container.margin
|
||||||
|
@ -430,12 +447,13 @@
|
||||||
(set s.myrightwidgets {
|
(set s.myrightwidgets {
|
||||||
1 {
|
1 {
|
||||||
:layout wibox.layout.fixed.horizontal
|
:layout wibox.layout.fixed.horizontal
|
||||||
1 s.mailwidget
|
1 s.wttrwidget
|
||||||
2 s.cpuwidget
|
2 s.mailwidget
|
||||||
3 s.volumewidget
|
3 s.cpuwidget
|
||||||
4 (if laptop s.batterywidget s.myemptywidget)
|
4 s.volumewidget
|
||||||
5 (if (= s.index 1) s.mysystray)
|
5 (if laptop s.batterywidget s.myemptywidget)
|
||||||
6 s.mylayoutbox
|
6 (if (= s.index 1) s.mysystray)
|
||||||
|
7 s.mylayoutbox
|
||||||
}
|
}
|
||||||
:widget wibox.container.background
|
:widget wibox.container.background
|
||||||
})
|
})
|
||||||
|
|
|
@ -131,7 +131,7 @@
|
||||||
(awful.key [ modkey ] "x" (fn [] (awful.spawn "emacsclient -c -e '(org-capture)'"))
|
(awful.key [ modkey ] "x" (fn [] (awful.spawn "emacsclient -c -e '(org-capture)'"))
|
||||||
{:description "launch scratchpad in new emacs frame" :group "apps" })
|
{:description "launch scratchpad in new emacs frame" :group "apps" })
|
||||||
(awful.key [ modkey ] "'" (fn [] (awful.spawn "emacsclient -e '(org-agenda-list)'"
|
(awful.key [ modkey ] "'" (fn [] (awful.spawn "emacsclient -e '(org-agenda-list)'"
|
||||||
{:name "*Org Agenda(a)*"}))
|
{:name "*Org Agenda(a)*" :floating true :placement awful.placement.centered :class "org-agenda" :instance "org-agenda"}))
|
||||||
{:description "launch org-agenda in new emacs frame" :group "apps" })
|
{:description "launch org-agenda in new emacs frame" :group "apps" })
|
||||||
(awful.key [ modkey alt ] "m" (fn [] (awful.spawn "emacsclient -c -e '(org-roam-capture)'"))
|
(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" })
|
{:description "launch org-roam-capture in new emacs frame" :group "apps" })
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
-- pcall(require, "luarocks.loader")
|
pcall(require, "luarocks.loader")
|
||||||
fennel = require("fennel")
|
fennel = require("fennel")
|
||||||
local gears = require("gears")
|
local gears = require("gears")
|
||||||
fennel.path = fennel.path .. ";.config/awesome/?.fnl"
|
fennel.path = fennel.path .. ";.config/awesome/?.fnl"
|
||||||
|
|
|
@ -76,11 +76,16 @@
|
||||||
:name [
|
:name [
|
||||||
"*Org Agenda(a)*"
|
"*Org Agenda(a)*"
|
||||||
]
|
]
|
||||||
|
:class [
|
||||||
|
"org-agenda"
|
||||||
|
]
|
||||||
|
:instance [
|
||||||
|
"org-agenda"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
:properties {
|
:properties {
|
||||||
:floating true
|
:floating true
|
||||||
:raise true
|
:raise true
|
||||||
:screen 1
|
|
||||||
:placement (+ awful.placement.no_offscreen awful.placement.centered)
|
:placement (+ awful.placement.no_offscreen awful.placement.centered)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,8 @@ theme.base0D = "#57c7ff"
|
||||||
theme.base0E = "#ff6ac1"
|
theme.base0E = "#ff6ac1"
|
||||||
theme.base0F = "#b2643c"
|
theme.base0F = "#b2643c"
|
||||||
|
|
||||||
|
theme.bg_darker = "#1a1a25"
|
||||||
|
|
||||||
theme.bg_normal = theme.base00
|
theme.bg_normal = theme.base00
|
||||||
theme.bg_light = theme.base01
|
theme.bg_light = theme.base01
|
||||||
theme.bg_focus = theme.base0D -- Base02
|
theme.bg_focus = theme.base0D -- Base02
|
||||||
|
|
|
@ -20,7 +20,7 @@ round-borders-exclude = [
|
||||||
shadow = true;
|
shadow = true;
|
||||||
|
|
||||||
# The blur radius for shadows, in pixels. (defaults to 12)
|
# The blur radius for shadows, in pixels. (defaults to 12)
|
||||||
shadow-radius = 13;
|
shadow-radius = 18;
|
||||||
|
|
||||||
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
|
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
|
||||||
shadow-opacity = .75;
|
shadow-opacity = .75;
|
||||||
|
@ -169,6 +169,7 @@ opacity-rule = [
|
||||||
# "100:class_g = 'kitty'",
|
# "100:class_g = 'kitty'",
|
||||||
"100:class_g = 'Alacritty'",
|
"100:class_g = 'Alacritty'",
|
||||||
"100:class_g = 'qutebrowser'",
|
"100:class_g = 'qutebrowser'",
|
||||||
|
"100:class_g = 'scribus'",
|
||||||
"100:class_g = 'OpenLP'",
|
"100:class_g = 'OpenLP'",
|
||||||
"80:class_g = 'Polybar'",
|
"80:class_g = 'Polybar'",
|
||||||
"100:class_g = 'code-oss'",
|
"100:class_g = 'code-oss'",
|
||||||
|
|
2
scripts/wttr
Executable file
2
scripts/wttr
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/sh
|
||||||
|
curl 'wttr.in/long_island,ks?format=%c%t+💦+%h+☔+%p\n'
|
Loading…
Reference in a new issue