A lot of random bologna that I hope helps

This commit is contained in:
Chris Cochrun 2021-09-01 13:38:17 -05:00
parent a0f9f3669b
commit dbdc9371d1
13 changed files with 54 additions and 3039 deletions

5
awesome/README.org Normal file
View file

@ -0,0 +1,5 @@
#+TITLE:AwesomeWM in Fennel
#+AUTHOR: Chris Cochrun
#+DESCRIPTION: This Awesome Window Manager config is written primarily in fennel. This is a lisp written in and compiled to lua. Fennel runs at lua speeds but is created to make a lisp syntax for lua and to provide a lisp macro system for lua. I prefer reading and writing lisps over lua so that is why my AwesomeWM is configured in fennel.
To get us started we need to bootstrap fennel in order to get Awesome to load .fnl files.

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

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,3 @@
;; -*- comment-end: ""; -*-
;; Standard awesome library|#
(local gears (require "gears"))
(local awful (require "awful"))
@ -49,7 +48,7 @@
;; Import the bling modules and layouts
(local bling (require "bling"))
(local awestore (require "awestore"))
;; (local awestore (require "awestore"))
;; This is used later as the default terminal and editor to run.
(var terminal "alacritty")
@ -371,9 +370,6 @@
1 s.batteryicon
2 s.batterytext
3 s.batteryspace
4 s.batteryicon
5 s.batterytext2
6 s.batteryspace
:layout wibox.layout.fixed.horizontal})
:widget wibox.container.margin
:left (dpi 5)}
@ -504,7 +500,9 @@
7 (if (= s.index 1) s.mysystray)
8 s.mylayoutbox
}
:widget wibox.container.background
:widget wibox.container.margin
:top (dpi 1)
:bottom (dpi 1)
})
(local yoffset (dpi 45)) ;; variables to be used for placing the wibox
@ -644,7 +642,7 @@
;; Prevent clients from being unreachable after screen count changes.
(awful.placement.no_offscreen c))
;; MPV wasn't centering right
(when (= c.class "mpv") (awful.placement.centered c))
;; (when (= c.class "mpv") (awful.placement.centered c))
(awful.client.focus.byidx 1)
(: c :activate [])))

View file

@ -4,7 +4,7 @@
(local hotkeys_popup (require "awful.hotkeys_popup"))
(local bling (require "bling"))
(local awestore (require "awestore"))
;; (local awestore (require "awestore"))
(local terminal "alacritty")
(local modkey "Mod4")
@ -13,19 +13,20 @@
(local alt "Mod1")
;; adding an org-agenda scratchpad
(local anim-y (awestore.tweened 1100 { :duration 200 :easing awestore.easing.cubic_in_out }))
(local anim-x (awestore.tweened 1920 { :duration 200 :easing awestore.easing.cubic_in_out }))
;; (local anim-y (awestore.tweened 1100 { :duration 200 :easing awestore.easing.cubic_in_out }))
;; (local anim-x (awestore.tweened 1920 { :duration 200 :easing awestore.easing.cubic_in_out }))
(local agenda-scratch (bling.module.scratchpad:new {
:command "emacsclient -e '(chris/org-agenda)'"
:rule [:name "*Org Agenda(a)*"]
:rule [:name "org-agenda"]
:sticky true
:autoclose true
:floating true
:geometry {:height 900 :width 1200}
:reapply true
:dont_focus_before_close true
:awestore {:x anim-x :y anim-y}}))
;; :awestore {:x anim-x :y anim-y}
}))
(fn get-volume [?callback]
(let [cb (or ?callback (fn [] nil))]
@ -33,8 +34,8 @@
(awful.spawn.easy_async "cat /etc/hostname" (fn [ stdout stderr reason exit_code ]
(if (= "syl\n" stdout)
(global bwmenu "bwmenu -- -config /home/chris/.dotfiles/rofi/launchers-git/laptop.rasi")
(global bwmenu "bwmenu -- -config /home/chris/.dotfiles/rofi/launchers-git/desktop.rasi"))))
(global bwmenu "bwmenu -- -config /home/chris/.config/rofi/launchers-git/laptop.rasi")
(global bwmenu "bwmenu -- -config /home/chris/.config/rofi/launchers-git/desktop.rasi"))))
(local keybindings
{
@ -65,8 +66,8 @@
{:description "focus the next screen" :group "screen"})
(awful.key [ modkey ] "h" (fn [] (awful.screen.focus_relative -1))
{:description "focus the previous screen" :group "screen"})
(awful.key [ modkey ] "u" awful.client.urgent.jumpto
{:description "jump to urgent client" :group "client"})
;; (awful.key [ modkey ] "u" awful.client.urgent.jumpto
;; {:description "jump to urgent client" :group "client"})
(awful.key [ modkey ] "Tab" (fn []
(awful.client.focus.history.previous)
(when client.focus (: client.focus :raise)))
@ -112,7 +113,7 @@
{:description "restore minimized" :group "client"})
;; Prompt
(awful.key [ modkey ] "Menu" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/run.sh"))
(awful.key [ modkey ] "Menu" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/run.sh"))
{:description "run prompt" :group "launcher"})
(awful.key [ modkey shift ctrl ] "x" (fn []
@ -130,7 +131,7 @@
{:description "screenshot" :group "utilities"})
(awful.key [modkey shift] "p" (fn [] (awful.spawn "flameshot gui"))
{:description "screenshot" :group "utilities"})
(awful.key [ modkey ] "." (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/emoji.sh"))
(awful.key [ modkey ] "." (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/emoji.sh"))
{:description "emoji picker" :group "utilities"})
(awful.key [] "XF86MonBrightnessUp" (fn [] (awful.spawn
"light -A 5"))
@ -150,8 +151,7 @@
(awful.key [ modkey ] "x" (fn [] (awful.spawn "emacsclient -c -e '(org-capture)'"
{:floating true :placement awful.placement.centered :class "org-agenda" :instance "org-agenda"}))
{:description "launch scratchpad in new emacs frame" :group "apps" })
(awful.key [ modkey ] "'" (fn [] (awful.spawn "emacsclient -e '(chris/org-agenda)'"
{:floating true :placement awful.placement.centered :class "org-agenda" :instance "org-agenda"}))
(awful.key [ modkey ] "'" (fn [] (awful.spawn "agenda-scratch"))
{:description "launch org-agenda in new emacs frame" :group "apps" })
(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" })
@ -170,9 +170,11 @@
(awful.key [modkey] "b" (fn [] (awful.spawn "qutebrowser"))
{:description "launch browser" :group "apps"})
;; rofi
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/launcher.sh"))
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh"))
{:description "launch rofi" :group "launcher"})
(awful.key [modkey] "w" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/windows.sh"))
(awful.key [modkey alt] "space" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh"))
{:description "launch rofi" :group "launcher"})
(awful.key [modkey] "w" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/windows.sh"))
{:description "launch rofi window switcher" :group "launcher"})
(awful.key [modkey shift] "b" (fn [] (awful.spawn bwmenu))
{:description "launch rofi bitwarden selector" :group "launcher"})
@ -378,6 +380,8 @@
{:description "move to screen" :group "client"})
(awful.key [ modkey ] "t" (fn [c] (set c.ontop (not c.ontop)))
{:description "toggle keep on top" :group "client"})
(awful.key [ modkey ] "u" (fn [c] (set c.sticky (not c.sticky)))
{:description "toggle keep on top" :group "client"})
(awful.key [ modkey ] "n" (fn [c]
;; The client currently has the input focus, so it cannot be
;; minimized, since minimized clients can't have the focus.

View file

@ -116,6 +116,7 @@
:properties {
:floating true
:raise true
:sticky true
:placement (+ awful.placement.no_offscreen awful.placement.centered)
}
}
@ -174,6 +175,7 @@
"dolphin"
"feh"
"Arandr"
"ffplay"
]
:name [
"Event Tester"

View file

@ -3,7 +3,7 @@ description = ""
# Directories to index.
dirs = [
"~/.dotfiles",
"~/dotfiles",
"~/org",
"~/Downloads",
"~/Documents",

View file

@ -25,6 +25,9 @@ settings:
https://www.websitebuilderexpert.com: false
https://www.youtube.com: false
content.register_protocol_handler:
https://outlook.live.com?mailtouri=%25s: false
https://outlook.office.com?mailtouri=%25s: false
tabs.show:
global: always
zoom.default:
global: 150%

View file

@ -10,4 +10,4 @@ configuration {
run-command: "fish -c {cmd}";
run-list-command: "fish -c functions";
}
@import "/home/chris/.dotfiles/rofi/launchers-git/desktop.rasi"
@import "/home/chris/.config/rofi/launchers-git/desktop.rasi"

View file

@ -12,4 +12,4 @@
configuration {
font: "VictorMono Nerd Font 14.0";
}
@import "/home/chris/.dotfiles/rofi/launchers-git/blurry.rasi"
@import "/home/chris/.config/rofi/launchers-git/blurry.rasi"

View file

@ -12,4 +12,4 @@
configuration {
font: "VictorMono Nerd Font 28.0";
}
@import "/home/chris/.dotfiles/rofi/launchers-git/blurry.rasi"
@import "/home/chris/.config/rofi/launchers-git/blurry.rasi"

View file

@ -12,4 +12,4 @@ else
#echo "this is not hidpi"
fi
lolcate | rofi -dmenu -p "File Search:" -i -config ~/.dotfiles/rofi/launchers-git/$style.rasi -matching regex | xargs -r0 xdg-open
lolcate | rofi -dmenu -p "File Search:" -i -config ~/.config/rofi/launchers-git/$style.rasi -matching regex | xargs -r0 xdg-open

View file

@ -0,0 +1,14 @@
[Unit]
Description=Service to keep secrets of applications
Documentation=https://github.com/yousefvand/secret-service
[Install]
WantedBy=default.target
[Service]
Type=simple
RestartSec=30
Restart=always
Environment="MASTERPASSWORD=Gr@$$B00ts#21"
WorkingDirectory=/usr/bin/
ExecStart=/usr/bin/secretserviced