Rofi and bar customization

This commit is contained in:
2023-02-25 19:10:06 +01:00
parent fc648daf58
commit 72d0cf1c17
13 changed files with 465 additions and 165 deletions

View File

@@ -21,8 +21,8 @@ darkblue=#83bae8
cpu() { cpu() {
cpu_val=$(grep -o "^[^ ]*" /proc/loadavg) cpu_val=$(grep -o "^[^ ]*" /proc/loadavg)
printf "^c$black^ ^b$green^ CPU" printf "^c$black^ ^b$green^ 󰇄 "
printf "^c$white^ ^b$grey^ $cpu_val" printf "^c$black^ ^b$green^$cpu_val"
} }
pkg_updates() { pkg_updates() {
@@ -31,9 +31,9 @@ pkg_updates() {
# updates=$(aptitude search '~U' | wc -l) # apt (ubuntu,debian etc) # updates=$(aptitude search '~U' | wc -l) # apt (ubuntu,debian etc)
if [ -z "$updates" ]; then if [ -z "$updates" ]; then
printf " ^c$green^  Fully Updated" printf " ^c$blue^  Fully Updated"
else else
printf " ^c$green^  $updates"" updates" printf " ^c$blue^  $updates"" updates"
fi fi
} }
@@ -48,8 +48,8 @@ brightness() {
} }
mem() { mem() {
printf "^c$blue^^b$black^  " printf "^c$black^^b$red^  "
printf "^c$blue^ $(free -h | awk '/^Mem/ { print $3 }' | sed s/i//g)" printf "^c$black^ $(free -h | awk '/^Mem/ { print $3 }' | sed s/i//g)"
} }
wlan() { wlan() {
@@ -60,8 +60,8 @@ wlan() {
} }
clock() { clock() {
printf "^c$black^ ^b$darkblue^ 󱑆 " printf "^c$black^ ^b$blue^ 󱑁 "
printf "^c$black^^b$blue^ $(date '+%H:%M') " printf "^c$black^^b$blue^ $(date '+%r') "
} }
while true; do while true; do
@@ -70,5 +70,5 @@ while true; do
interval=$((interval + 1)) interval=$((interval + 1))
# sleep 1 && xsetroot -name "$updates $(battery) $(brightness) $(cpu) $(mem) $(wlan) $(clock)" # sleep 1 && xsetroot -name "$updates $(battery) $(brightness) $(cpu) $(mem) $(wlan) $(clock)"
sleep 1 && xsetroot -name "$updates $(cpu) $(mem) $(clock)" sleep 1 && xsetroot -name "$(cpu) $(mem) $(clock)"
done done

View File

@@ -156,9 +156,9 @@ static void (*bartabmonfns[])(Monitor *) = { NULL /* , customlayoutfn */ };
#if BAR_PANGO_PATCH #if BAR_PANGO_PATCH
static const char font[] = "monospace 11"; static const char font[] = "monospace 11";
#else #else
static const char *fonts[] = { "SauceCodePro Nerd Font Mono:size=11:antialias=true", "monospace:size=11:antialias=true" }; static const char *fonts[] = { "SauceCodePro Nerd Font:size=11:antialias=true", "monospace:size=11:antialias=true" };
#endif // BAR_PANGO_PATCH #endif // BAR_PANGO_PATCH
static const char dmenufont[] = "SauceCodePro Nerd Font Mono:size=11:antialias=true"; static const char dmenufont[] = "SauceCodePro Nerd Font:size=11:antialias=true";
static char c000000[] = "#000000"; // placeholder value static char c000000[] = "#000000"; // placeholder value
@@ -848,6 +848,7 @@ static const char *xkb_layouts[] = {
#if !NODMENU_PATCH #if !NODMENU_PATCH
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
#endif // NODMENU_PATCH #endif // NODMENU_PATCH
static const char *rofidruncmd[] = {"rofi", "-show", "drun", NULL};
static const char *dmenucmd[] = { static const char *dmenucmd[] = {
"dmenu_run", "dmenu_run",
#if !NODMENU_PATCH #if !NODMENU_PATCH
@@ -1039,6 +1040,7 @@ static const Key keys[] = {
{ MODKEY|ControlMask, XK_z, showhideclient, {0} }, { MODKEY|ControlMask, XK_z, showhideclient, {0} },
#endif // BAR_WINTITLEACTIONS_PATCH #endif // BAR_WINTITLEACTIONS_PATCH
{ MODKEY|ShiftMask, XK_c, killclient, {0} }, { MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_q, killclient, {0} },
#if KILLUNSEL_PATCH #if KILLUNSEL_PATCH
{ MODKEY|ShiftMask, XK_x, killunsel, {0} }, { MODKEY|ShiftMask, XK_x, killunsel, {0} },
#endif // KILLUNSEL_PATCH #endif // KILLUNSEL_PATCH
@@ -1078,7 +1080,7 @@ static const Key keys[] = {
{ MODKEY|Mod5Mask|Mod1Mask, XK_Tab, rotatelayoutaxis, {.i = -4 } }, /* flextile, 4 = secondary stack axis */ { MODKEY|Mod5Mask|Mod1Mask, XK_Tab, rotatelayoutaxis, {.i = -4 } }, /* flextile, 4 = secondary stack axis */
{ MODKEY|ControlMask, XK_Return, mirrorlayout, {0} }, /* flextile, flip master and stack areas */ { MODKEY|ControlMask, XK_Return, mirrorlayout, {0} }, /* flextile, flip master and stack areas */
#endif // FLEXTILE_DELUXE_LAYOUT #endif // FLEXTILE_DELUXE_LAYOUT
{ MODKEY, XK_space, setlayout, {0} }, { MODKEY, XK_space, spawn, {.v = rofidruncmd}},
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
#if MAXIMIZE_PATCH #if MAXIMIZE_PATCH
{ MODKEY|ControlMask|ShiftMask, XK_h, togglehorizontalmax, {0} }, { MODKEY|ControlMask|ShiftMask, XK_h, togglehorizontalmax, {0} },

View File

@@ -1,98 +1,18 @@
configuration{ configuration{
modi: "run,drun,window"; modi: "run,drun,window";
lines: 5; icon-theme: "Oranchelo";
font: "Iosevka 12";
show-icons: true; show-icons: true;
icon-theme: "Paper Mono"; terminal: "alacritty";
terminal: "st";
drun-display-format: "{icon} {name}"; drun-display-format: "{icon} {name}";
location: 0; location: 0;
disable-history: false; disable-history: false;
hide-scrollbar: true; hide-scrollbar: true;
display-drun: "  Apps "; display-drun: "  Apps ";
display-run: "  Run ";
display-window: " 﩯 Window";
display-Network: " 󰤨 Network";
sidebar-mode: true;
} }
@theme "everblush" @theme "catppuccin-mocha"
element-text, element-icon , mode-switcher {
background-color: inherit;
text-color: inherit;
}
window {
height: 360px;
border: 3px;
border-color: @border-col;
background-color: @bg-col;
}
mainbox {
background-color: @bg-col;
}
inputbar {
children: [prompt,entry];
background-color: @bg-col;
border-radius: 5px;
padding: 2px;
}
prompt {
background-color: @blue;
padding: 6px;
text-color: @bg-col;
border-radius: 3px;
margin: 20px 0px 0px 20px;
}
textbox-prompt-colon {
expand: false;
str: ":";
}
entry {
padding: 6px;
margin: 20px 0px 0px 10px;
text-color: @fg-col;
background-color: @bg-col;
}
listview {
border: 0px 0px 0px;
padding: 6px 0px 0px;
margin: 10px 0px 0px 20px;
columns: 2;
background-color: @bg-col;
}
element {
padding: 5px;
background-color: @bg-col;
text-color: @fg-col ;
}
element-icon {
size: 25px;
}
element selected {
background-color: @selected-col ;
text-color: @fg-col2 ;
}
mode-switcher {
spacing: 0;
}
button {
padding: 10px;
background-color: @bg-col-light;
text-color: @grey;
vertical-align: 0.5;
horizontal-align: 0.5;
}
button selected {
background-color: @bg-col;
text-color: @blue;
}

View File

@@ -1,11 +0,0 @@
* {
bg-col: #282a36;
bg-col-light: #44475a;
border-col: #44475a;
selected-col: #44475a;
blue: #bd93f9;
fg-col: #f8f8f2;
fg-col2: #ffffff;
grey: #6272a4;
width: 600;
}

View File

@@ -1,11 +0,0 @@
* {
bg-col: #181f21;
bg-col-light: #22292b;
border-col: #272e30;
selected-col: #31383a;
blue: #67b0e8;
fg-col: #dadada;
fg-col2: #d5d5d5;
grey: #363d3f;
width: 600;
}

View File

@@ -1,11 +0,0 @@
* {
bg-col: #2B3339;
bg-col-light: #333b41;
border-col: #333b41;
selected-col: #333b41;
blue: #87c095;
fg-col: #b4bbc8;
fg-col2: #e67e80;
grey: #545c62;
width: 600;
}

View File

@@ -1,11 +0,0 @@
* {
bg-col: #1e2122;
bg-col-light: #26292a;
border-col: #282b2c;
selected-col: #242728;
blue: #8dae88;
fg-col: #d4be98;
fg-col2: #df736d;
grey: #5b5e5f;
width: 600;
}

View File

@@ -1,11 +0,0 @@
* {
bg-col: #2E3440;
bg-col-light: #343a46;
border-col: #343a46;
selected-col: #343a46;
blue: #81A1C1;
fg-col: #b4bbc8;
fg-col2: #BF616A;
grey: #646a76;
width: 600;
}

View File

@@ -1,11 +0,0 @@
* {
bg-col: #1e222a;
bg-col-light: #282c34;
border-col: #282c34;
selected-col: #282c34;
blue: #61afef;
fg-col: #abb2bf;
fg-col2: #e06c75;
grey: #565c64;
width: 600;
}

View File

@@ -0,0 +1,111 @@
* {
bg-col: #303446;
bg-col-light: #303446;
border-col: #303446;
selected-col: #303446;
blue: #8caaee;
fg-col: #c6d0f5;
fg-col2: #e78284;
grey: #737994;
width: 600;
font: "JetBrainsMono Nerd Font 14";
}
element-text, element-icon , mode-switcher {
background-color: inherit;
text-color: inherit;
}
window {
height: 360px;
border: 3px;
border-color: @border-col;
background-color: @bg-col;
}
mainbox {
background-color: @bg-col;
}
inputbar {
children: [prompt,entry];
background-color: @bg-col;
border-radius: 5px;
padding: 2px;
}
prompt {
background-color: @blue;
padding: 6px;
text-color: @bg-col;
border-radius: 3px;
margin: 20px 0px 0px 20px;
}
textbox-prompt-colon {
expand: false;
str: ":";
}
entry {
padding: 6px;
margin: 20px 0px 0px 10px;
text-color: @fg-col;
background-color: @bg-col;
}
listview {
border: 0px 0px 0px;
padding: 6px 0px 0px;
margin: 10px 0px 0px 20px;
columns: 2;
lines: 5;
background-color: @bg-col;
}
element {
padding: 5px;
background-color: @bg-col;
text-color: @fg-col ;
}
element-icon {
size: 25px;
}
element selected {
background-color: @selected-col ;
text-color: @fg-col2 ;
}
mode-switcher {
spacing: 0;
}
button {
padding: 10px;
background-color: @bg-col-light;
text-color: @grey;
vertical-align: 0.5;
horizontal-align: 0.5;
}
button selected {
background-color: @bg-col;
text-color: @blue;
}
message {
background-color: @bg-col-light;
margin: 2px;
padding: 2px;
border-radius: 5px;
}
textbox {
padding: 6px;
margin: 20px 0px 0px 20px;
text-color: @blue;
background-color: @bg-col-light;
}

View File

@@ -0,0 +1,111 @@
* {
bg-col: #eff1f5;
bg-col-light: #eff1f5;
border-col: #eff1f5;
selected-col: #eff1f5;
blue: #1e66f5;
fg-col: #4c4f69;
fg-col2: #d20f39;
grey: #9ca0b0;
width: 600;
font: "JetBrainsMono Nerd Font 14";
}
element-text, element-icon , mode-switcher {
background-color: inherit;
text-color: inherit;
}
window {
height: 360px;
border: 3px;
border-color: @border-col;
background-color: @bg-col;
}
mainbox {
background-color: @bg-col;
}
inputbar {
children: [prompt,entry];
background-color: @bg-col;
border-radius: 5px;
padding: 2px;
}
prompt {
background-color: @blue;
padding: 6px;
text-color: @bg-col;
border-radius: 3px;
margin: 20px 0px 0px 20px;
}
textbox-prompt-colon {
expand: false;
str: ":";
}
entry {
padding: 6px;
margin: 20px 0px 0px 10px;
text-color: @fg-col;
background-color: @bg-col;
}
listview {
border: 0px 0px 0px;
padding: 6px 0px 0px;
margin: 10px 0px 0px 20px;
columns: 2;
lines: 5;
background-color: @bg-col;
}
element {
padding: 5px;
background-color: @bg-col;
text-color: @fg-col ;
}
element-icon {
size: 25px;
}
element selected {
background-color: @selected-col ;
text-color: @fg-col2 ;
}
mode-switcher {
spacing: 0;
}
button {
padding: 10px;
background-color: @bg-col-light;
text-color: @grey;
vertical-align: 0.5;
horizontal-align: 0.5;
}
button selected {
background-color: @bg-col;
text-color: @blue;
}
message {
background-color: @bg-col-light;
margin: 2px;
padding: 2px;
border-radius: 5px;
}
textbox {
padding: 6px;
margin: 20px 0px 0px 20px;
text-color: @blue;
background-color: @bg-col-light;
}

View File

@@ -0,0 +1,111 @@
* {
bg-col: #24273a;
bg-col-light: #24273a;
border-col: #24273a;
selected-col: #24273a;
blue: #8aadf4;
fg-col: #cad3f5;
fg-col2: #ed8796;
grey: #6e738d;
width: 600;
font: "JetBrainsMono Nerd Font 14";
}
element-text, element-icon , mode-switcher {
background-color: inherit;
text-color: inherit;
}
window {
height: 360px;
border: 3px;
border-color: @border-col;
background-color: @bg-col;
}
mainbox {
background-color: @bg-col;
}
inputbar {
children: [prompt,entry];
background-color: @bg-col;
border-radius: 5px;
padding: 2px;
}
prompt {
background-color: @blue;
padding: 6px;
text-color: @bg-col;
border-radius: 3px;
margin: 20px 0px 0px 20px;
}
textbox-prompt-colon {
expand: false;
str: ":";
}
entry {
padding: 6px;
margin: 20px 0px 0px 10px;
text-color: @fg-col;
background-color: @bg-col;
}
listview {
border: 0px 0px 0px;
padding: 6px 0px 0px;
margin: 10px 0px 0px 20px;
columns: 2;
lines: 5;
background-color: @bg-col;
}
element {
padding: 5px;
background-color: @bg-col;
text-color: @fg-col ;
}
element-icon {
size: 25px;
}
element selected {
background-color: @selected-col ;
text-color: @fg-col2 ;
}
mode-switcher {
spacing: 0;
}
button {
padding: 10px;
background-color: @bg-col-light;
text-color: @grey;
vertical-align: 0.5;
horizontal-align: 0.5;
}
button selected {
background-color: @bg-col;
text-color: @blue;
}
message {
background-color: @bg-col-light;
margin: 2px;
padding: 2px;
border-radius: 5px;
}
textbox {
padding: 6px;
margin: 20px 0px 0px 20px;
text-color: @blue;
background-color: @bg-col-light;
}

View File

@@ -0,0 +1,111 @@
* {
bg-col: #1e1e2e;
bg-col-light: #1e1e2e;
border-col: #1e1e2e;
selected-col: #1e1e2e;
blue: #89b4fa;
fg-col: #cdd6f4;
fg-col2: #f38ba8;
grey: #6c7086;
width: 600;
font: "JetBrainsMono Nerd Font 14";
}
element-text, element-icon , mode-switcher {
background-color: inherit;
text-color: inherit;
}
window {
height: 360px;
border: 3px;
border-color: @border-col;
background-color: @bg-col;
}
mainbox {
background-color: @bg-col;
}
inputbar {
children: [prompt,entry];
background-color: @bg-col;
border-radius: 5px;
padding: 2px;
}
prompt {
background-color: @blue;
padding: 6px;
text-color: @bg-col;
border-radius: 3px;
margin: 20px 0px 0px 20px;
}
textbox-prompt-colon {
expand: false;
str: ":";
}
entry {
padding: 6px;
margin: 20px 0px 0px 10px;
text-color: @fg-col;
background-color: @bg-col;
}
listview {
border: 0px 0px 0px;
padding: 6px 0px 0px;
margin: 10px 0px 0px 20px;
columns: 2;
lines: 5;
background-color: @bg-col;
}
element {
padding: 5px;
background-color: @bg-col;
text-color: @fg-col ;
}
element-icon {
size: 25px;
}
element selected {
background-color: @selected-col ;
text-color: @fg-col2 ;
}
mode-switcher {
spacing: 0;
}
button {
padding: 10px;
background-color: @bg-col-light;
text-color: @grey;
vertical-align: 0.5;
horizontal-align: 0.5;
}
button selected {
background-color: @bg-col;
text-color: @blue;
}
message {
background-color: @bg-col-light;
margin: 2px;
padding: 2px;
border-radius: 5px;
}
textbox {
padding: 6px;
margin: 20px 0px 0px 20px;
text-color: @blue;
background-color: @bg-col-light;
}