From 5e2448e1fbaa3a3aaecbb25c1853e096f8060520 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 1 Sep 2021 06:04:57 -0500 Subject: [PATCH] some awesome changes mostly --- awesome/init.fnl | 2 +- awesome/keybindings.fnl | 23 +++++++++++------------ awesome/rules.fnl | 2 ++ rofi/config.rasi | 2 +- rofi/launchers-git/blurry.rasi | 4 ++-- systemd/user/mail.service | 8 ++++++++ systemd/user/mail.timer | 9 +++++++++ 7 files changed, 34 insertions(+), 16 deletions(-) create mode 100644 systemd/user/mail.service create mode 100644 systemd/user/mail.timer diff --git a/awesome/init.fnl b/awesome/init.fnl index 9c7a535..3dba051 100644 --- a/awesome/init.fnl +++ b/awesome/init.fnl @@ -73,7 +73,7 @@ (if (= "syl\n" stdout) (global laptop true) (global laptop false)))) -(local laptop true) +(local laptop false) ;; Table of layouts to cover with awful.layout.inc, order matters. (set awful.layout.layouts [ diff --git a/awesome/keybindings.fnl b/awesome/keybindings.fnl index 3c63ea8..5af5f8e 100644 --- a/awesome/keybindings.fnl +++ b/awesome/keybindings.fnl @@ -16,16 +16,16 @@ (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)*"] - :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}})) +(local agenda-scratch (bling.module.scratchpad { + :command "emacsclient -e '(chris/org-agenda-awesome)'" + :rule [:name "*Org Agenda(a)*"] + :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}})) (fn get-volume [?callback] (let [cb (or ?callback (fn [] nil))] @@ -150,8 +150,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 "emacslient -e '(chris/org-agenda)'")) {: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" }) diff --git a/awesome/rules.fnl b/awesome/rules.fnl index e852fef..853f39d 100644 --- a/awesome/rules.fnl +++ b/awesome/rules.fnl @@ -174,11 +174,13 @@ "dolphin" "feh" "Arandr" + "gcr-prompter" ] :name [ "Event Tester" "remove images?" "Blender Preferences" + "Unlock Login Keyring" ] :role [ "pop-up" diff --git a/rofi/config.rasi b/rofi/config.rasi index c911358..469b42f 100644 --- a/rofi/config.rasi +++ b/rofi/config.rasi @@ -10,4 +10,4 @@ configuration { run-command: "fish -c {cmd}"; run-list-command: "fish -c functions"; } -@import "/home/chris/.dotfiles/rofi/launchers-git/laptop.rasi" +@import "/home/chris/.dotfiles/rofi/launchers-git/desktop.rasi" diff --git a/rofi/launchers-git/blurry.rasi b/rofi/launchers-git/blurry.rasi index 5ff834a..3b65e41 100644 --- a/rofi/launchers-git/blurry.rasi +++ b/rofi/launchers-git/blurry.rasi @@ -28,7 +28,7 @@ configuration { foreground-selected: #ffffff; urgent: #E91E63; urgent-selected: #E91E63; - transparent: #282a36CC; + transparent: #00000000; base00: #282a36; base01: #34353e; base02: #43454f; @@ -45,7 +45,7 @@ configuration { base0D: #57c7ff; base0E: #ff6ac1; base0F: #b2643c; - base00t: #282a3655; + base00t: #282a3666; } window { diff --git a/systemd/user/mail.service b/systemd/user/mail.service new file mode 100644 index 0000000..82d1215 --- /dev/null +++ b/systemd/user/mail.service @@ -0,0 +1,8 @@ +[Unit] +Description=mbsync automated sync of mail + +[Service] +ExecStart=/home/chris/scripts/mailsync.sh + +[Install] +WantedBy=default.target diff --git a/systemd/user/mail.timer b/systemd/user/mail.timer new file mode 100644 index 0000000..3e6669b --- /dev/null +++ b/systemd/user/mail.timer @@ -0,0 +1,9 @@ +[Unit] +Description=timer for syncing mail + +[Timer] +OnStartupSec=2min +OnUnitActiveSec=30min + +[Install] +WantedBy=timers.target