From 09f816c2944c20e14ea41ed1281e47bb139d72aa Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 30 Dec 2020 18:32:35 +0100 Subject: [PATCH] based all colors on xresources --- .Xresources | 1 + .Xresources##class.blue | 26 +++- .config/alacritty/alacritty.skeleton.yml | 36 ++--- .config/alacritty/alacritty.yml | 36 ++--- .config/alacritty/applyXRDB.sh | 13 +- .config/i3/config##hostname.pc | 25 ++- .config/polybar/config | 7 +- .config/polybar/scripts/polybar_floating.sh | 0 .config/rofi/applyXRDB.sh | 38 +++++ .config/rofi/config | 147 ------------------ .config/rofi/config.rasi | 3 +- .config/rofi/h45_sidebar_theme.rasi | 94 ----------- .config/rofi/h45_theme.rasi | 1 - .config/rofi/h45_theme.rasi##class.blue | 137 ---------------- .config/rofi/h45_theme.rasi##class.red | 137 ---------------- .config/rofi/h45_theme.rasi##default | 137 ---------------- .../rofi/{slate_nord.rasi => rofi.nord.rasi} | 0 .config/rofi/rofi.rasi | 44 ++++++ .config/rofi/rofi.skeleton.rasi | 44 ++++++ 19 files changed, 216 insertions(+), 710 deletions(-) create mode 120000 .Xresources create mode 100644 .config/polybar/scripts/polybar_floating.sh create mode 100644 .config/rofi/applyXRDB.sh delete mode 100644 .config/rofi/config delete mode 100644 .config/rofi/h45_sidebar_theme.rasi delete mode 120000 .config/rofi/h45_theme.rasi delete mode 100644 .config/rofi/h45_theme.rasi##class.blue delete mode 100644 .config/rofi/h45_theme.rasi##class.red delete mode 100644 .config/rofi/h45_theme.rasi##default rename .config/rofi/{slate_nord.rasi => rofi.nord.rasi} (100%) create mode 100644 .config/rofi/rofi.rasi create mode 100644 .config/rofi/rofi.skeleton.rasi diff --git a/.Xresources b/.Xresources new file mode 120000 index 0000000..d41bb79 --- /dev/null +++ b/.Xresources @@ -0,0 +1 @@ +.Xresources##class.blue \ No newline at end of file diff --git a/.Xresources##class.blue b/.Xresources##class.blue index c7e1aed..9a8dc13 100644 --- a/.Xresources##class.blue +++ b/.Xresources##class.blue @@ -1,9 +1,12 @@ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! Colors +! +*.background: #2e3440 +*.foreground: #eceff4 +! +!! Terminal Colors ! -*.background: #2e3440 -*.foreground: #eceff4 -*.cursorColor: #eceff4 +*.cursorColor: #eceff4 ! ! Black *.color0: #3b4252 @@ -37,6 +40,23 @@ *.color7: #eceff4 *.color15: #eceff4 ! +!! i3 Colors +! +*.i3_urgent: #88c0d0 +*.i3_focused: #5e81ac +*.i3_unfocused: #434c5e +*.i3_indicator: #4c566a +! +!! Polybar Colors +! +*.highlight: #81a1c1 +! +!! Rofi Colors +! +*.rofi_border: #434c5e +*.rofi_fgdim: #d8dee9 +*.rofi_selected: #4c566a +! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! diff --git a/.config/alacritty/alacritty.skeleton.yml b/.config/alacritty/alacritty.skeleton.yml index e704b7f..c95907e 100644 --- a/.config/alacritty/alacritty.skeleton.yml +++ b/.config/alacritty/alacritty.skeleton.yml @@ -43,26 +43,26 @@ schemes: xrdb: &xrdb primary: - background: %background% - foreground: %foreground% + background: '%background%' + foreground: '%foreground%' normal: - black: %color0% - red: %color1% - green: %color2% - yellow: %color3% - blue: %color4% - magenta: %color5% - cyan: %color6% - white: %color7% + black: '%color0%' + red: '%color1%' + green: '%color2%' + yellow: '%color3%' + blue: '%color4%' + magenta: '%color5%' + cyan: '%color6%' + white: '%color7%' bright: - black: %color8% - red: %color9% - green: %color10% - yellow: %color11% - blue: %color12% - magenta: %color13% - cyan: %color14% - white: %color15% + black: '%color8%' + red: '%color9%' + green: '%color10%' + yellow: '%color11%' + blue: '%color12%' + magenta: '%color13%' + cyan: '%color14%' + white: '%color15%' nord: &nord primary: diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index e45cb05..552e016 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -43,26 +43,26 @@ schemes: xrdb: &xrdb primary: - background: '0x2e3440' - foreground: '0xeceff4' + background: '#2e3440' + foreground: '#eceff4' normal: - black: '0x3b4252' - red: '0xbf616a' - green: '0xa3be8c' - yellow: '0xebcb8b' - blue: '0x81a1c1' - magenta: '0xb48ead' - cyan: '0x88c0d0' - white: '0xeceff4' + black: '#3b4252' + red: '#bf616a' + green: '#a3be8c' + yellow: '#ebcb8b' + blue: '#81a1c1' + magenta: '#b48ead' + cyan: '#88c0d0' + white: '#eceff4' bright: - black: '0x3b4252' - red: '0xbf616a' - green: '0xa3be8c' - yellow: '0xebcb8b' - blue: '0x81a1c1' - magenta: '0xb48ead' - cyan: '0x88c0d0' - white: '0xeceff4' + black: '#3b4252' + red: '#bf616a' + green: '#a3be8c' + yellow: '#ebcb8b' + blue: '#81a1c1' + magenta: '#b48ead' + cyan: '#88c0d0' + white: '#eceff4' nord: &nord primary: diff --git a/.config/alacritty/applyXRDB.sh b/.config/alacritty/applyXRDB.sh index 67aa05c..a353b05 100644 --- a/.config/alacritty/applyXRDB.sh +++ b/.config/alacritty/applyXRDB.sh @@ -4,6 +4,8 @@ # Update alacritty config to apply Xresources color scheme # +NAMED_COLORS=("foreground" "background") + # Target file SKELETON_FILE="$HOME/.config/alacritty/alacritty.skeleton.yml" TARGET_FILE="$HOME/.config/alacritty/alacritty.yml" @@ -17,16 +19,17 @@ cp "$SKELETON_FILE" "$TARGET_FILE.tmp" xrdb ~/.Xresources # Named colors -foreground=$(xrdb -query | awk '/*.foreground/ { print substr($2,2) }') -background=$(xrdb -query | awk '/*.background/ { print substr($2,2) }') -sed -i "s/%foreground%/\x270x${foreground}\x27/g" "$TARGET_FILE.tmp" -sed -i "s/%background%/\x270x${background}\x27/g" "$TARGET_FILE.tmp" +for i in "${NAMED_COLORS[@]}" +do + color=$(xrdb -query | awk "/*.$i/ { print substr(\$2,2) }") + sed -i "s/%$i%/#${color}/g" "$TARGET_FILE.tmp" +done # Numbered colors for i in {0..15} do v=$(xrdb -query | awk '/*.color'"$i":'/ { print substr($2,2) }') - eval "sed -i 's/%color${i}%/\x270x${v}\x27/g' $TARGET_FILE.tmp"; + eval "sed -i 's/%color${i}%/#${v}/g' $TARGET_FILE.tmp"; done diff --git a/.config/i3/config##hostname.pc b/.config/i3/config##hostname.pc index 33a4729..3dc8152 100644 --- a/.config/i3/config##hostname.pc +++ b/.config/i3/config##hostname.pc @@ -358,15 +358,24 @@ mode "| Resize " { ################################################################################################ # Themes / Colors / Design / Look and Feel -# Colors -# class border backgr. text indic. child_border - client.focused #5e81ac #5e81ac #eceff4 #5e81ac #5e81ac - client.focused_inactive #434c5e #4c566a #eceff4 #4c566a #4c566a - client.unfocused #434c5e #4c566a #eceff4 #4c566a #4c566a - client.urgent #434c5e #88c0d0 #eceff4 #88c0d0 #88c0d0 - client.placeholder #434c5e #434c5e #eceff4 #434c5e #434c5e +# XRDB colors +set_from_resource $col_foreground foreground +set_from_resource $col_background background - client.background #2e3440 +set_from_resource $col_urgent i3_urgent +set_from_resource $col_focused i3_focused +set_from_resource $col_unfocused i3_unfocused +set_from_resource $col_indicator i3_indicator + +# Colors +# class border backgr. text indic. child_border + client.focused $col_focused $col_focused $col_foreground $col_focused $col_focused + client.focused_inactive $col_unfocused $col_indicator $col_foreground $col_indicator $col_indicator + client.unfocused $col_unfocused $col_indicator $col_foreground $col_indicator $col_indicator + client.urgent $col_unfocused $col_urgent $col_foreground $col_urgent $col_urgent + client.placeholder $col_unfocused $col_unfocused $col_foreground $col_unfocused $col_unfocused + + client.background $col_background ################################################ # i3-gaps diff --git a/.config/polybar/config b/.config/polybar/config index f9cabc1..f3856a4 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -14,10 +14,9 @@ screenchange-reload = true [colors] transparent = #00ffffff -background = #ff2e3440 -border = #af3b4252 -foreground = #eceff4 -foreground-alt = #81a1c1 +background = ${xrdb:background} +foreground = ${xrdb:foreground} +foreground-alt = ${xrdb:highlight} ; Bars diff --git a/.config/polybar/scripts/polybar_floating.sh b/.config/polybar/scripts/polybar_floating.sh new file mode 100644 index 0000000..e69de29 diff --git a/.config/rofi/applyXRDB.sh b/.config/rofi/applyXRDB.sh new file mode 100644 index 0000000..f2ad234 --- /dev/null +++ b/.config/rofi/applyXRDB.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +########### +# Update rofi config to apply Xresources color scheme +# + +NAMED_COLORS=("foreground" "background" "rofi_fgdim" "rofi_border" "rofi_selected") + +# Target file +SKELETON_FILE="$HOME/.config/rofi/rofi.skeleton.rasi" +TARGET_FILE="$HOME/.config/rofi/rofi.rasi" + +# copy input file to temporary file for black magic fuckery +# (alacritty applies colors when the config file is written, so we want to do it +# all in one write) +cp "$SKELETON_FILE" "$TARGET_FILE.tmp" + +# Grab colors from Xresources +xrdb ~/.Xresources + +# Named colors +for i in "${NAMED_COLORS[@]}" +do + color=$(xrdb -query | awk "/*.$i/ { print substr(\$2,2) }") + sed -i "s/%$i%/#${color}/g" "$TARGET_FILE.tmp" +done + +# Numbered colors +for i in {0..15} +do + v=$(xrdb -query | awk '/*.color'"$i":'/ { print substr($2,2) }') + eval "sed -i 's/%color${i}%/#${v}/g' $TARGET_FILE.tmp"; +done + + +# Finally, replace target file with our updated one +rm -f "$TARGET_FILE" +mv "$TARGET_FILE.tmp" "$TARGET_FILE" \ No newline at end of file diff --git a/.config/rofi/config b/.config/rofi/config deleted file mode 100644 index 79a0d38..0000000 --- a/.config/rofi/config +++ /dev/null @@ -1,147 +0,0 @@ -configuration { - modi: "window,run,ssh,drun"; -#width: 50; -lines: 5; -#columns: 1; -font: "Roboto Mono 12"; -#bw: 1; -#location: 0; -#padding: 5; -#yoffset: 0; -#xoffset: 0; -fixed-num-lines: true; -show-icons: true; -#terminal: "rofi-sensible-terminal"; -#ssh-client: "ssh"; -#ssh-command: "{terminal} -e {ssh-client} {host}"; -#run-command: "{cmd}"; -#run-list-command: ""; -#run-shell-command: "{terminal} -e {cmd}"; -#window-command: "xkill -id {window}"; -#window-match-fields: "all"; -icon-theme: ePapirus; -#drun-match-fields: "name,generic,exec,categories"; -#drun-show-actions: false; -drun-display-format: "{name} [({generic})]"; -#disable-history: false; -sort: true; -sorting-method: "fzf"; -#case-sensitive: false; -#cycle: true; -#sidebar-mode: true; -#eh: 1; -#auto-select: false; -#parse-hosts: false; -#parse-known-hosts: true; -#combi-modi: "window,run"; -#matching: "normal"; -#tokenize: true; -#m: "-5"; -#line-margin: 2; -#line-padding: 1; -#filter: ; -#separator-style: "dash"; -#hide-scrollbar: false; -fullscreen: true; -#fake-transparency: false; -#dpi: -1; -#threads: 0; -#scrollbar-width: 8; -#scroll-method: 0; -#fake-background: "screenshot"; -#window-format: "{w} {i}{c} {t}"; -#click-to-exit: true; -#show-match: true; -#theme: ; -#color-normal: ; -#color-urgent: ; -#color-active: ; -#color-window: ; -#max-history-size: 25; -#combi-hide-mode-prefix: false; -#matching-negate-char: '-' #unsupported ; -#pid: "/run/user/1000/rofi.pid"; -#display-window: ; -#display-windowcd: ; -#display-run: ; -#display-ssh: ; -#display-drun: ; -#display-combi: ; -#display-keys: ; -#kb-primary-paste: "Control+V,Shift+Insert"; -#kb-secondary-paste: "Control+v,Insert"; -#kb-clear-line: "Control+w"; -#kb-move-front: "Control+a"; -#kb-move-end: "Control+e"; -#kb-move-word-back: "Alt+b,Control+Left"; -#kb-move-word-forward: "Alt+f,Control+Right"; -#kb-move-char-back: "Left,Control+b"; -#kb-move-char-forward: "Right,Control+f"; -#kb-remove-word-back: "Control+Alt+h,Control+BackSpace"; -#kb-remove-word-forward: "Control+Alt+d"; -#kb-remove-char-forward: "Delete,Control+d"; -#kb-remove-char-back: "BackSpace,Shift+BackSpace,Control+h"; -#kb-remove-to-eol: "Control+k"; -#kb-remove-to-sol: "Control+u"; -#kb-accept-entry: "Control+j,Control+m,Return,KP_Enter"; -#kb-accept-custom: "Control+Return"; -#kb-accept-alt: "Shift+Return"; -#kb-delete-entry: "Shift+Delete"; -#kb-mode-next: "Shift+Right,Control+Tab"; -#kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab"; -#kb-row-left: "Control+Page_Up"; -#kb-row-right: "Control+Page_Down"; -#kb-row-up: "Up,Control+p,ISO_Left_Tab"; -#kb-row-down: "Down,Control+n"; -#kb-row-tab: "Tab"; -#kb-page-prev: "Page_Up"; -#kb-page-next: "Page_Down"; -#kb-row-first: "Home,KP_Home"; -#kb-row-last: "End,KP_End"; -#kb-row-select: "Control+space"; -#kb-screenshot: "Alt+S"; -#kb-toggle-case-sensitivity: "grave,dead_grave"; -#kb-toggle-sort: "Alt+grave"; -#kb-cancel: "Escape,Control+g,Control+bracketleft"; -#kb-custom-1: "Alt+1"; -#kb-custom-2: "Alt+2"; -#kb-custom-3: "Alt+3"; -#kb-custom-4: "Alt+4"; -#kb-custom-5: "Alt+5"; -#kb-custom-6: "Alt+6"; -#kb-custom-7: "Alt+7"; -#kb-custom-8: "Alt+8"; -#kb-custom-9: "Alt+9"; -#kb-custom-10: "Alt+0"; -#kb-custom-11: "Alt+exclam"; -#kb-custom-12: "Alt+at"; -#kb-custom-13: "Alt+numbersign"; -#kb-custom-14: "Alt+dollar"; -#kb-custom-15: "Alt+percent"; -#kb-custom-16: "Alt+dead_circumflex"; -#kb-custom-17: "Alt+ampersand"; -#kb-custom-18: "Alt+asterisk"; -#kb-custom-19: "Alt+parenleft"; -#kb-select-1: "Super+1"; -#kb-select-2: "Super+2"; -#kb-select-3: "Super+3"; -#kb-select-4: "Super+4"; -#kb-select-5: "Super+5"; -#kb-select-6: "Super+6"; -#kb-select-7: "Super+7"; -#kb-select-8: "Super+8"; -#kb-select-9: "Super+9"; -#kb-select-10: "Super+0"; -#ml-row-left: "ScrollLeft"; -#ml-row-right: "ScrollRight"; -#ml-row-up: "ScrollUp"; -#ml-row-down: "ScrollDown"; -#me-select-entry: "MousePrimary"; -#me-accept-entry: "MouseDPrimary"; -#me-accept-custom: "Control+MouseDPrimary"; -} - - -#rofi.theme: /usr/share/rofi/themes/sidebar.rasi -#rofi.theme: ~/.config/rofi/h45_theme.rasi -rofi.theme: ~/.config/rofi/slate_nord.rasi diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi index e4ae94a..37a0136 100644 --- a/.config/rofi/config.rasi +++ b/.config/rofi/config.rasi @@ -1,4 +1,6 @@ configuration { + theme: "~/.config/rofi/rofi.rasi"; + /* modi: "window,run,ssh";*/ /* width: 50;*/ lines: 5; @@ -55,7 +57,6 @@ configuration { /* window-format: "{w} {c} {t}";*/ /* click-to-exit: true;*/ /* show-match: true;*/ - theme: "~/.config/rofi/slate_nord.rasi"; /* color-normal: ;*/ /* color-urgent: ;*/ /* color-active: ;*/ diff --git a/.config/rofi/h45_sidebar_theme.rasi b/.config/rofi/h45_sidebar_theme.rasi deleted file mode 100644 index 63f5df9..0000000 --- a/.config/rofi/h45_sidebar_theme.rasi +++ /dev/null @@ -1,94 +0,0 @@ -* { - - padding: 0; - - background-panel: #000000c9; - text-color: rgb(255, 255, 255); - - background-color: rgba(0,0,0,0); - - color-theme-text: #CCE9FF; - color-theme-accent: #048BA8; - color-theme-accent-light: #F3DE8A; - color-theme-accent-dark: #331E36; - color-theme-dark: #1D3147; - color-theme-background: #000B19; - - highlight: bold #ffffff; -} -#window { - fullscreen: true; - location: west; - anchor: west; - border: 0px 2px 0px 0px; - text-color: @color-theme-text; - - orientation: horizontal; - children: [mainbox, dummy]; -} - -#dummy { - expand: true; -} - -#sidebar { - border: 2px 0px 0px 0px; - background-color: @color-theme-background; -} -#button selected { - border-color: @color-theme-accent; - text-color: @color-theme-accent; -} -#entry { - width: 20em; -} -#inputbar { - background-color: @color-theme-accent; - text-color: @color-theme-text; - padding: 1px 2px 1px 2px; - border: 0px 0px 2px 0px; -} -#mainbox { - expand: false; - background-color: @background-panel; - spacing: 1em; -} -#listview { - padding: 0em 0.4em 0em 1em; - dynamic: false; - lines: 0; -} -#element selected normal { - background-color: @color-theme-accent; -} -#element normal active { - text-color: @color-theme-text; -} -#element normal urgent { - text-color: @color-theme-accent-light; -} -#element alternate normal { -} -#element alternate active { - text-color: @color-theme-text; -} -#element alternate urgent { - text-color: @color-theme-accent-light; -} -#element selected active { - background-color: @color-theme-accent; - text-color: @color-theme-text; -} -#element selected urgent { - background-color: @color-theme-accent; - text-color: @color-theme-accent-light; -} -#inputbar { - children: [ prompt,textbox-prompt-colon,entry,case-indicator]; -} -#textbox-prompt-colon { - expand: false; - str: ":"; - margin: 0px 0.3em 0em 0em ; - text-color: @color-theme-text; -} diff --git a/.config/rofi/h45_theme.rasi b/.config/rofi/h45_theme.rasi deleted file mode 120000 index c9e6a0d..0000000 --- a/.config/rofi/h45_theme.rasi +++ /dev/null @@ -1 +0,0 @@ -h45_theme.rasi##class.blue \ No newline at end of file diff --git a/.config/rofi/h45_theme.rasi##class.blue b/.config/rofi/h45_theme.rasi##class.blue deleted file mode 100644 index db3dc51..0000000 --- a/.config/rofi/h45_theme.rasi##class.blue +++ /dev/null @@ -1,137 +0,0 @@ -* { - selected-normal-foreground: rgba ( 255, 255, 255, 100 % ); - foreground: rgba ( 193, 193, 193, 100 % ); - normal-foreground: @foreground; - alternate-normal-background: rgba ( 39, 50, 56, 100 % ); - red: rgba ( 220, 50, 47, 100 % ); - selected-urgent-foreground: rgba ( 255, 24, 68, 100 % ); - blue: rgba ( 38, 139, 210, 100 % ); - urgent-foreground: rgba ( 255, 24, 68, 100 % ); - alternate-urgent-background: rgba ( 39, 50, 56, 100 % ); - active-foreground: rgba ( 128, 203, 196, 100 % ); - lightbg: rgba ( 238, 232, 213, 100 % ); - selected-active-foreground: rgba ( 128, 203, 196, 100 % ); - alternate-active-background: rgba ( 39, 50, 56, 100 % ); - background: rgba ( 39, 50, 56, 100 % ); - bordercolor: rgba ( 39, 50, 56, 100 % ); - alternate-normal-foreground: @foreground; - normal-background: rgba ( 39, 50, 56, 100 % ); - lightfg: rgba ( 88, 104, 117, 100 % ); - selected-normal-background: rgba ( 57, 66, 73, 100 % ); - border-color: @foreground; - spacing: 2; - separatorcolor: rgba ( 30, 37, 41, 100 % ); - urgent-background: rgba ( 39, 50, 56, 100 % ); - selected-urgent-background: rgba ( 57, 66, 73, 100 % ); - alternate-urgent-foreground: @urgent-foreground; - background-color: rgba ( 0, 0, 0, 0 % ); - alternate-active-foreground: @active-foreground; - active-background: rgba ( 39, 50, 56, 100 % ); - selected-active-background: rgba ( 57, 66, 73, 100 % ); -} -#window { - background-color: @background; - border: 1; - padding: 5; -} -#mainbox { - border: 2px solid #00ff00; - padding: 0; -} -#message { - border: 1px dash 0px 0px ; - border-color: @separatorcolor; - padding: 1px ; -} -#textbox { - text-color: @foreground; -} -#listview { - fixed-height: 0; - border: 2px dash 0px 0px ; - border-color: @separatorcolor; - spacing: 2px ; - scrollbar: true; - padding: 2px 0px 0px ; -} -#element { - border: 0; - padding: 1px ; -} -#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-width: 8px ; - padding: 0; -} -#sidebar { - border: 2px dash 0px 0px ; - border-color: @separatorcolor; -} -#button.selected { - background-color: @selected-normal-background; - text-color: @selected-normal-foreground; -} -#inputbar { - spacing: 0; - text-color: @normal-foreground; - padding: 1px ; -} -#case-indicator { - spacing: 0; - text-color: @normal-foreground; -} -#entry { - spacing: 0; - text-color: @normal-foreground; -} -#prompt { - spacing: 0; - text-color: @normal-foreground; -} -#inputbar { - children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; -} -#textbox-prompt-colon { - expand: false; - str: ":"; - margin: 0px 0.3em 0em 0em ; - text-color: @normal-foreground; -} - diff --git a/.config/rofi/h45_theme.rasi##class.red b/.config/rofi/h45_theme.rasi##class.red deleted file mode 100644 index 83dba01..0000000 --- a/.config/rofi/h45_theme.rasi##class.red +++ /dev/null @@ -1,137 +0,0 @@ -* { - selected-normal-foreground: rgba ( 255, 255, 255, 100 % ); - foreground: rgba ( 193, 193, 193, 100 % ); - normal-foreground: @foreground; - alternate-normal-background: rgba ( 65, 39, 39, 100%); - red: rgba ( 220, 50, 47, 100 % ); - selected-urgent-foreground: rgba ( 255, 24, 68, 100 % ); - blue: rgba ( 38, 139, 210, 100 % ); - urgent-foreground: rgba ( 255, 24, 68, 100 % ); - alternate-urgent-background: rgba ( 65, 39, 39, 100%); - active-foreground: rgba ( 128, 203, 196, 100 % ); - lightbg: rgba ( 238, 232, 213, 100 % ); - selected-active-foreground: rgba ( 128, 203, 196, 100 % ); - alternate-active-background: rgba ( 65, 39, 39, 100%); - background: rgba ( 65, 39, 39, 100%); - bordercolor: rgba ( 65, 39, 39, 100%); - alternate-normal-foreground: @foreground; - normal-background: rgba ( 65, 39, 39, 100%); - lightfg: rgba ( 88, 104, 117, 100 % ); - selected-normal-background: rgba ( 73, 57, 57, 100 % ); - border-color: @foreground; - spacing: 2; - separatorcolor: rgba ( 41, 30, 30, 100 % ); - urgent-background: rgba ( 65, 39, 39, 100%); - selected-urgent-background: rgba ( 57, 66, 73, 100 % ); - alternate-urgent-foreground: @urgent-foreground; - background-color: rgba ( 0, 0, 0, 0 % ); - alternate-active-foreground: @active-foreground; - active-background: rgba ( 65, 39, 39, 100%); - selected-active-background: rgba ( 57, 66, 73, 100 % ); -} -#window { - background-color: @background; - border: 1; - padding: 5; -} -#mainbox { - border: 0; - padding: 0; -} -#message { - border: 1px dash 0px 0px ; - border-color: @separatorcolor; - padding: 1px ; -} -#textbox { - text-color: @foreground; -} -#listview { - fixed-height: 0; - border: 2px dash 0px 0px ; - border-color: @separatorcolor; - spacing: 2px ; - scrollbar: true; - padding: 2px 0px 0px ; -} -#element { - border: 0; - padding: 1px ; -} -#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-width: 8px ; - padding: 0; -} -#sidebar { - border: 2px dash 0px 0px ; - border-color: @separatorcolor; -} -#button.selected { - background-color: @selected-normal-background; - text-color: @selected-normal-foreground; -} -#inputbar { - spacing: 0; - text-color: @normal-foreground; - padding: 1px ; -} -#case-indicator { - spacing: 0; - text-color: @normal-foreground; -} -#entry { - spacing: 0; - text-color: @normal-foreground; -} -#prompt { - spacing: 0; - text-color: @normal-foreground; -} -#inputbar { - children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; -} -#textbox-prompt-colon { - expand: false; - str: ":"; - margin: 0px 0.3em 0em 0em ; - text-color: @normal-foreground; -} - diff --git a/.config/rofi/h45_theme.rasi##default b/.config/rofi/h45_theme.rasi##default deleted file mode 100644 index 2166748..0000000 --- a/.config/rofi/h45_theme.rasi##default +++ /dev/null @@ -1,137 +0,0 @@ -* { - selected-normal-foreground: rgba ( 255, 255, 255, 100 % ); - foreground: rgba ( 193, 193, 193, 100 % ); - normal-foreground: @foreground; - alternate-normal-background: rgba ( 39, 50, 56, 100 % ); - red: rgba ( 220, 50, 47, 100 % ); - selected-urgent-foreground: rgba ( 255, 24, 68, 100 % ); - blue: rgba ( 38, 139, 210, 100 % ); - urgent-foreground: rgba ( 255, 24, 68, 100 % ); - alternate-urgent-background: rgba ( 39, 50, 56, 100 % ); - active-foreground: rgba ( 128, 203, 196, 100 % ); - lightbg: rgba ( 238, 232, 213, 100 % ); - selected-active-foreground: rgba ( 128, 203, 196, 100 % ); - alternate-active-background: rgba ( 39, 50, 56, 100 % ); - background: rgba ( 39, 50, 56, 100 % ); - bordercolor: rgba ( 39, 50, 56, 100 % ); - alternate-normal-foreground: @foreground; - normal-background: rgba ( 39, 50, 56, 100 % ); - lightfg: rgba ( 88, 104, 117, 100 % ); - selected-normal-background: rgba ( 57, 66, 73, 100 % ); - border-color: @foreground; - spacing: 2; - separatorcolor: rgba ( 30, 37, 41, 100 % ); - urgent-background: rgba ( 39, 50, 56, 100 % ); - selected-urgent-background: rgba ( 57, 66, 73, 100 % ); - alternate-urgent-foreground: @urgent-foreground; - background-color: rgba ( 0, 0, 0, 0 % ); - alternate-active-foreground: @active-foreground; - active-background: rgba ( 39, 50, 56, 100 % ); - selected-active-background: rgba ( 57, 66, 73, 100 % ); -} -#window { - background-color: @background; - border: 1; - padding: 5; -} -#mainbox { - border: 0; - padding: 0; -} -#message { - border: 1px dash 0px 0px ; - border-color: @separatorcolor; - padding: 1px ; -} -#textbox { - text-color: @foreground; -} -#listview { - fixed-height: 0; - border: 2px dash 0px 0px ; - border-color: @separatorcolor; - spacing: 2px ; - scrollbar: true; - padding: 2px 0px 0px ; -} -#element { - border: 0; - padding: 1px ; -} -#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-width: 8px ; - padding: 0; -} -#sidebar { - border: 2px dash 0px 0px ; - border-color: @separatorcolor; -} -#button.selected { - background-color: @selected-normal-background; - text-color: @selected-normal-foreground; -} -#inputbar { - spacing: 0; - text-color: @normal-foreground; - padding: 1px ; -} -#case-indicator { - spacing: 0; - text-color: @normal-foreground; -} -#entry { - spacing: 0; - text-color: @normal-foreground; -} -#prompt { - spacing: 0; - text-color: @normal-foreground; -} -#inputbar { - children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; -} -#textbox-prompt-colon { - expand: false; - str: ":"; - margin: 0px 0.3em 0em 0em ; - text-color: @normal-foreground; -} - diff --git a/.config/rofi/slate_nord.rasi b/.config/rofi/rofi.nord.rasi similarity index 100% rename from .config/rofi/slate_nord.rasi rename to .config/rofi/rofi.nord.rasi diff --git a/.config/rofi/rofi.rasi b/.config/rofi/rofi.rasi new file mode 100644 index 0000000..3553dd2 --- /dev/null +++ b/.config/rofi/rofi.rasi @@ -0,0 +1,44 @@ +* { + background-color:#3b4252; + border: 0px; + text-color:#d8dee9; + spacing: 0; + width: 512px; +} + +#window { + border: 4px; + border-color: #434c5e; + background-color: #3b4252; +} + +inputbar { + children: [prompt,entry]; +} + +prompt { + background-color: #434c5e; + padding: 16px; +} + +textbox { + background-color: #434c5e; + padding: 8px 16px; +} + +entry { + background-color: #434c5e; + padding: 16px; +} + +listview { +} + +element { + padding: 16px; +} + +element selected { + background-color: #4c566a; + text-color: #eceff4; +} diff --git a/.config/rofi/rofi.skeleton.rasi b/.config/rofi/rofi.skeleton.rasi new file mode 100644 index 0000000..11b8018 --- /dev/null +++ b/.config/rofi/rofi.skeleton.rasi @@ -0,0 +1,44 @@ +* { + background-color:%color0%; + border: 0px; + text-color:%rofi_fgdim%; + spacing: 0; + width: 512px; +} + +#window { + border: 4px; + border-color: %rofi_border%; + background-color: %color0%; +} + +inputbar { + children: [prompt,entry]; +} + +prompt { + background-color: %rofi_border%; + padding: 16px; +} + +textbox { + background-color: %rofi_border%; + padding: 8px 16px; +} + +entry { + background-color: %rofi_border%; + padding: 16px; +} + +listview { +} + +element { + padding: 16px; +} + +element selected { + background-color: %rofi_selected%; + text-color: %foreground%; +}