From 2872158486ec374e7caae22e426413b4b806d24d Mon Sep 17 00:00:00 2001 From: Joachim Nielandt Date: Sat, 18 Jul 2020 11:51:53 +0200 Subject: [PATCH] Added rofi to chezmoi --- dot_config/symlink_rofi | 1 + dot_dotfiles/polybar/config.tmpl | 2 +- dot_dotfiles/rofi/config | 4 + dot_dotfiles/rofi/executable_runrofi.sh | 2 + dot_dotfiles/rofi/executable_wifi | 19 +++ dot_dotfiles/rofi/gruvbox-dark-mod.rasi | 214 ++++++++++++++++++++++++ 6 files changed, 241 insertions(+), 1 deletion(-) create mode 100644 dot_config/symlink_rofi create mode 100644 dot_dotfiles/rofi/config create mode 100644 dot_dotfiles/rofi/executable_runrofi.sh create mode 100644 dot_dotfiles/rofi/executable_wifi create mode 100644 dot_dotfiles/rofi/gruvbox-dark-mod.rasi diff --git a/dot_config/symlink_rofi b/dot_config/symlink_rofi new file mode 100644 index 0000000..c082214 --- /dev/null +++ b/dot_config/symlink_rofi @@ -0,0 +1 @@ +../.dotfiles/rofi \ No newline at end of file diff --git a/dot_dotfiles/polybar/config.tmpl b/dot_dotfiles/polybar/config.tmpl index 8f79ef9..416d0e3 100644 --- a/dot_dotfiles/polybar/config.tmpl +++ b/dot_dotfiles/polybar/config.tmpl @@ -279,7 +279,7 @@ ws-icon-default = ﱤ ; mode menu styling label-mode-padding = 1 label-mode-foreground = ${colors.light0_hard} -label-mode-background = ${colors.dark0_hard} +label-mode-background = ${colors.dark2} ;label-mode-underline = ${colors.light2} ; can use: %icon% %name% %index diff --git a/dot_dotfiles/rofi/config b/dot_dotfiles/rofi/config new file mode 100644 index 0000000..fb42812 --- /dev/null +++ b/dot_dotfiles/rofi/config @@ -0,0 +1,4 @@ +rofi.combi-modi: window,drun,ssh +rofi.font: Fura Code 12 +rofi.modi: combi +rofi.theme: ~/.config/rofi/gruvbox-dark-mod.rasi diff --git a/dot_dotfiles/rofi/executable_runrofi.sh b/dot_dotfiles/rofi/executable_runrofi.sh new file mode 100644 index 0000000..8b976aa --- /dev/null +++ b/dot_dotfiles/rofi/executable_runrofi.sh @@ -0,0 +1,2 @@ +#rofi -show run +rofi -show run -modi "run,ssh,window" -sidebar-mode diff --git a/dot_dotfiles/rofi/executable_wifi b/dot_dotfiles/rofi/executable_wifi new file mode 100644 index 0000000..d90dfba --- /dev/null +++ b/dot_dotfiles/rofi/executable_wifi @@ -0,0 +1,19 @@ +# Config for rofi-wifi-menu + +# position values: +# 1 2 3 +# 8 0 4 +# 7 6 5 +POSITION=3 + +#y-offset +YOFF=17 + +#x-offset +XOFF=0 + +#fields to be displayed +FIELDS=SSID,SECURITY,BARS + +#font +FONT="Fura Code 8" diff --git a/dot_dotfiles/rofi/gruvbox-dark-mod.rasi b/dot_dotfiles/rofi/gruvbox-dark-mod.rasi new file mode 100644 index 0000000..8efab27 --- /dev/null +++ b/dot_dotfiles/rofi/gruvbox-dark-mod.rasi @@ -0,0 +1,214 @@ +/* ========================================================================== + Rofi color theme + + Based on the Gruvbox color scheme for Vim by morhetz + https://github.com/morhetz/gruvbox + + File: gruvbox-dark.rasi + Desc: Gruvbox dark color theme for Rofi + Author: bardisty + Source: https://github.com/bardisty/gruvbox-rofi + Modified: Mon Feb 12 2018 04:08:43 PST -0800 + ========================================================================== */ + +* { + /* Theme settings */ + highlight: bold italic; + scrollbar: true; + + /* Gruvbox dark colors */ + dark0-hard: #1d2021; + dark0: #282828; + dark0-soft: #32302f; + dark1: #3c3836; + dark2: #504945; + dark3: #665c54; + dark4: #7c6f64; + + gray-245: #928374; + gray-244: #928374; + + light0-hard: #f9f5d7; + light0: #fbf1c7; + light0-soft: #f2e5bc; + light1: #ebdbb2; + light2: #d5c4a1; + light3: #bdae93; + light4: #a89984; + + bright-red: #fb4934; + bright-green: #b8bb26; + bright-yellow: #fabd2f; + bright-blue: #83a598; + bright-purple: #d3869b; + bright-aqua: #8ec07c; + bright-orange: #fe8019; + + neutral-red: #cc241d; + neutral-green: #98971a; + neutral-yellow: #d79921; + neutral-blue: #458588; + neutral-purple: #b16286; + neutral-aqua: #689d6a; + neutral-orange: #d65d0e; + + faded-red: #9d0006; + faded-green: #79740e; + faded-yellow: #b57614; + faded-blue: #076678; + faded-purple: #8f3f71; + faded-aqua: #427b58; + faded-orange: #af3a03; + + /* Theme colors */ + background: @dark0; + background-color: @background; + foreground: @light0-hard; + border-color: @gray-245; + separatorcolor: @border-color; + scrollbar-handle: @bright-orange; + + normal-background: @background; + normal-foreground: @foreground; + alternate-normal-background: @dark0; + alternate-normal-foreground: @foreground; + selected-normal-background: @dark4; + selected-normal-foreground: @bright-green; + + active-background: @neutral-yellow; + active-foreground: @background; + alternate-active-background: @active-background; + alternate-active-foreground: @active-foreground; + selected-active-background: @bright-yellow; + selected-active-foreground: @active-foreground; + + urgent-background: @faded-red; + urgent-foreground: @background; + alternate-urgent-background: @urgent-background; + alternate-urgent-foreground: @urgent-foreground; + selected-urgent-background: @gruvbox-dark-red-light; + selected-urgent-foreground: @urgent-foreground; +} + +window { + background-color: @background; + border: 2; + border-radius: 10; + padding: 20; +} + +mainbox { + border: 0; + padding: 0; +} + +message { + border: 2px 0 0; + border-color: @separatorcolor; + padding: 1px; +} + +textbox { + highlight: @highlight; + text-color: @foreground; +} + +listview { + border: 2px solid 0 0; + padding: 2px 0 0; + border-color: @separatorcolor; + spacing: 2px; + scrollbar: @scrollbar; +} + +element { + border: 0; + padding: 2px; +} + +element.normal.normal { + background-color: @normal-background; + text-color: @normal-foreground; +} + +element.normal.urgent { + background-color: @urgent-background; + text-color: @urgent-foreground; +} + +element.normal.active { + background-color: @active-background; + text-color: @active-foreground; +} + +element.selected.normal { + background-color: @selected-normal-background; + text-color: @selected-normal-foreground; +} + +element.selected.urgent { + background-color: @selected-urgent-background; + text-color: @selected-urgent-foreground; +} + +element.selected.active { + background-color: @selected-active-background; + text-color: @selected-active-foreground; +} + +element.alternate.normal { + background-color: @alternate-normal-background; + text-color: @alternate-normal-foreground; +} + +element.alternate.urgent { + background-color: @alternate-urgent-background; + text-color: @alternate-urgent-foreground; +} + +element.alternate.active { + background-color: @alternate-active-background; + text-color: @alternate-active-foreground; +} + +scrollbar { + width: 4px; + border: 0; + handle-color: @scrollbar-handle; + handle-width: 8px; + padding: 0; +} + +mode-switcher { + border: 2px 0 0; + border-color: @separatorcolor; +} + +inputbar { + spacing: 0; + text-color: @normal-foreground; + padding: 2px; + children: [ prompt, textbox-prompt-sep, entry, case-indicator ]; +} + +case-indicator, +entry, +prompt, +button { + spacing: 0; + text-color: @normal-foreground; +} + +button.selected { + background-color: @selected-normal-background; + text-color: @selected-normal-foreground; +} + +textbox-prompt-sep { + expand: false; + str: ":"; + text-color: @normal-foreground; + margin: 0 0.3em 0 0; +} + +