diff --git a/Sanderson.org b/Sanderson.org index d221aa5..993c220 100644 --- a/Sanderson.org +++ b/Sanderson.org @@ -183,5 +183,7 @@ (ssh-support? #t))) (service home-files-service-type `((".emacs.d/init.el" ,(local-file "init.el")) - (".offlineimaprc" ,(local-file "offlineimaprc"))))))) + (".offlineimaprc" ,(local-file "offlineimaprc")) + (".config/rofi/config.rasi" ,(local-file "rofi.rasi")) + (".local/bin/offlineimap-pass.py" ,(local-file "offlineimap-pass.py"))))))) #+end_src diff --git a/home/offlineimap-pass.py b/home/offlineimap-pass.py new file mode 100755 index 0000000..e37f032 --- /dev/null +++ b/home/offlineimap-pass.py @@ -0,0 +1,5 @@ +#!/usr/bin/env python +from subprocess import check_output + +def get_pass(account): + return check_output("pass " + account, shell=True).splitlines()[0] diff --git a/home/rofi.rasi b/home/rofi.rasi new file mode 100644 index 0000000..d052f03 --- /dev/null +++ b/home/rofi.rasi @@ -0,0 +1,133 @@ +/*Dracula theme based on the Purple official rofi theme*/ + +configuration { + show-icons: true; + display-drun: ""; + disable-history: false; +} + +* { + font: "Fira Code 12"; + foreground: #f8f8f2; + background-color: #282a36; + active-background: #6272a4; + urgent-background: #ff5555; + urgent-foreground: #282a36; + selected-background: @active-background; + selected-urgent-background: @urgent-background; + selected-active-background: @active-background; + separatorcolor: @active-background; + bordercolor: @active-background; +} + +#window { + background-color: @background-color; + border: 3; + border-radius: 6; + border-color: @bordercolor; + padding: 15; +} +#mainbox { + border: 0; + padding: 0; +} +#message { + border: 0px; + border-color: @separatorcolor; + padding: 1px; +} +#textbox { + text-color: @foreground; +} +#listview { + fixed-height: 0; + border: 0px; + border-color: @bordercolor; + spacing: 2px ; + scrollbar: false; + padding: 2px 0px 0px ; +} +#element { + border: 0; + padding: 3px ; +} +#element.normal.normal { + background-color: @background-color; + text-color: @foreground; +} +#element.normal.urgent { + background-color: @urgent-background; + text-color: @urgent-foreground; +} +#element.normal.active { + background-color: @active-background; + text-color: @foreground; +} +#element.selected.normal { + background-color: @selected-background; + text-color: @foreground; +} +#element.selected.urgent { + background-color: @selected-urgent-background; + text-color: @foreground; +} +#element.selected.active { + background-color: @selected-active-background; + text-color: @foreground; +} +#element.alternate.normal { + background-color: @background-color; + text-color: @foreground; +} +#element.alternate.urgent { + background-color: @urgent-background; + text-color: @foreground; +} +#element.alternate.active { + background-color: @active-background; + text-color: @foreground; +} +#scrollbar { + width: 2px ; + border: 0; + handle-width: 8px ; + padding: 0; +} +#sidebar { + border: 2px dash 0px 0px ; + border-color: @separatorcolor; +} +#button.selected { + background-color: @selected-background; + text-color: @foreground; +} +#inputbar { + spacing: 0; + text-color: @foreground; + padding: 1px ; +} +#case-indicator { + spacing: 0; + text-color: @foreground; +} +#entry { + spacing: 0; + text-color: @foreground; +} +#prompt { + spacing: 0; + text-color: @foreground; +} +#inputbar { + children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; +} +#textbox-prompt-colon { + expand: false; + str: ">"; + margin: 0px 0.3em 0em 0em ; + text-color: @foreground; +} +element-text, element-icon { + background-color: inherit; + text-color: inherit; +}