Adding a lot of better awesome stuff and rofi-pass

This commit is contained in:
Chris Cochrun 2021-02-16 11:13:11 -06:00
parent 4aa3a43819
commit 29a3a101c4
8 changed files with 126 additions and 15 deletions

View file

@ -21,7 +21,7 @@
;; my splits
(local clientrules (require "rules"))
(local keybindings (require "keybindings"))
;; (local notifications (require "notifications"))
(local notifications (require "notifications"))
;; Error handling
;; Check if awesome encountered an error during startup and fall back to
@ -72,13 +72,6 @@
(local hostname (hostname-handle:read "a"))
(hostname-handle:close)
(local laptop (= hostname "chris-linuxlaptop\n"))
;; (local laptop false)
;; (fn set-laptop [str]
;; (set laptop str))
;; (fn get-hostname [?callback]
;; (awful.spawn.easy_async "hostname" (fn [ stdout ] stdout)))
(naughty.notify {:text (tostring laptop)})
;; (if laptop (naughty.notify {:text "laptop detected"}) (naughty.notify {:text "laptop not detected"}))
;; Table of layouts to cover with awful.layout.inc, order matters.
(set awful.layout.layouts [
@ -453,6 +446,10 @@
;; Rules
(ruled.client.append_rules clientrules)
(ruled.notification.connect_signal
"request::rules"
(fn []
(ruled.notification.append_rules notifications)))
;; Signals
;; Signal function to execute when a new client appears.
@ -481,7 +478,6 @@
(awful.spawn "feh --bg-fill /home/chris/Pictures/wallpapers/RoyalKing.png")
(awful.spawn "flameshot")
(awful.spawn "caffeine")
;; (awful.spawn "nextcloud --background")
(awful.spawn "libinput-gestures-setup start")
(awful.spawn "bluetoothctl power on")
(awful.spawn "emacs --daemon")

View file

@ -138,7 +138,7 @@
{: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" })
(awful.key [ modkey ] "p" (fn [] (awful.spawn "emacsclient -c -e '(pass)'"))
(awful.key [ modkey ] "p" (fn [] (awful.spawn "rofi-pass"))
{:description "select pass" :group "apps" })
(awful.key [ modkey shift ] "w" (fn [] (awful.spawn "libreoffice --writer"))
{:description "Open Writer" :group "apps" })

View file

@ -9,11 +9,11 @@
(local rules [
;; All notifications match this rule
{
:rule { }
:rule { }
:propertites {
:border-width beautiful.border_width
:border_color beautiful.border_normal
:opacity 0.7
:border_color "#000000"
:opacity 0.1
:shape gears.shape.rounded_rect
}
}

View file

@ -105,6 +105,20 @@ theme.menu_width = dpi(100)
-- beautiful.variable in your rc.lua
--theme.bg_widget = "#cc0000"
-- mstab
theme.mstab_bar_ontop = true -- whether you want to allow the bar to be ontop of clients
theme.mstab_dont_resize_slaves = false -- whether the tabbed stack windows should be smaller than the
-- currently focused stack window (set it to true if you use
-- transparent terminals. False if you use shadows on solid ones
theme.mstab_bar_padding = "default" -- how much padding there should be between clients and your tabbar
-- by default it will adjust based on your useless gaps.
-- If you want a custom value. Set it to the number of pixels (int)
theme.mstab_border_radius = 10 -- border radius of the tabbar
theme.mstab_bar_height = 50 -- height of the tabbar
theme.mstab_tabbar_position = "top" -- position of the tabbar (mstab currently does not support left,right)
theme.mstab_tabbar_style = "default" -- style of the tabbar ("default", "boxes" or "modern")
-- defaults to the tabbar_style so only change if you want a
-- different style for mstab and tabbed
-- wibar
theme.wibar_shape = gears.shape.rounded_bar
theme.wibar_bg = theme.bg_normal