Redesign rofi + polybar to match README screenshots
This commit is contained in:
parent
592ee79a83
commit
459189eccb
|
@ -69,7 +69,7 @@ font-2 = "Siji:pixelsize=10;2"
|
||||||
; modules-left = volume pad cpu memory pad pkg mail
|
; modules-left = volume pad cpu memory pad pkg mail
|
||||||
modules-left = pulseaudio pad cpu memory
|
modules-left = pulseaudio pad cpu memory
|
||||||
modules-center = bspwm
|
modules-center = bspwm
|
||||||
modules-right = battery wlan syncthing redshift pad date
|
modules-right = wlan syncthing redshift pad battery pad date
|
||||||
|
|
||||||
;tray-position = center
|
;tray-position = center
|
||||||
;tray-padding = 2
|
;tray-padding = 2
|
||||||
|
@ -81,13 +81,13 @@ type = internal/bspwm
|
||||||
pin-workspaces = true
|
pin-workspaces = true
|
||||||
enable-click = true
|
enable-click = true
|
||||||
|
|
||||||
ws-icon-0 = 1;
|
# ws-icon-0 = 1;
|
||||||
ws-icon-1 = 2;
|
# ws-icon-1 = 2;
|
||||||
ws-icon-2 = 3;
|
# ws-icon-2 = 3;
|
||||||
ws-icon-3 = 4;
|
# ws-icon-3 = 4;
|
||||||
ws-icon-4 = 5;
|
# ws-icon-4 = 5;
|
||||||
ws-icon-5 = 6;
|
# ws-icon-5 = 6;
|
||||||
ws-icon-default = x
|
ws-icon-default =
|
||||||
|
|
||||||
format = <label-state> <label-mode>
|
format = <label-state> <label-mode>
|
||||||
label-padding = 1
|
label-padding = 1
|
||||||
|
@ -291,13 +291,15 @@ format-full-underline = ${self.format-charging-underline}
|
||||||
ramp-capacity-0 =
|
ramp-capacity-0 =
|
||||||
ramp-capacity-1 =
|
ramp-capacity-1 =
|
||||||
ramp-capacity-2 =
|
ramp-capacity-2 =
|
||||||
ramp-capacity-foreground = ${colors.fg-alt}
|
ramp-capacity-0-foreground = ${colors.red}
|
||||||
|
ramp-capacity-1-foreground = #575864
|
||||||
|
ramp-capacity-2-foreground = ${colors.fg-alt}
|
||||||
|
|
||||||
animation-charging-0 =
|
animation-charging-0 =
|
||||||
animation-charging-1 =
|
animation-charging-1 =
|
||||||
animation-charging-2 =
|
animation-charging-2 =
|
||||||
animation-charging-foreground = ${colors.fg-alt}
|
animation-charging-framerate = 1000
|
||||||
animation-charging-framerate = 750
|
animation-charging-foreground = ${colors.fg}
|
||||||
|
|
||||||
|
|
||||||
;=====================================================
|
;=====================================================
|
||||||
|
|
2
modules/themes/fluorescence/polybar/run.sh
Executable file → Normal file
2
modules/themes/fluorescence/polybar/run.sh
Executable file → Normal file
|
@ -3,5 +3,5 @@
|
||||||
killall -q polybar
|
killall -q polybar
|
||||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||||
|
|
||||||
polybar main >>$XDG_DATA_HOME/polybar.log 2>&1 &
|
polybar main >$XDG_DATA_HOME/polybar.log 2>&1 &
|
||||||
echo 'Polybar launched...'
|
echo 'Polybar launched...'
|
|
@ -2,9 +2,10 @@
|
||||||
|
|
||||||
@import "config.rasi"
|
@import "config.rasi"
|
||||||
|
|
||||||
window {
|
listview {
|
||||||
width: 44%;
|
columns: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
textbox-icon {
|
textbox-icon {
|
||||||
str: " 爵 ";
|
str: " 爵 ";
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,8 +20,8 @@ configuration {
|
||||||
magenta: #bd93f9;
|
magenta: #bd93f9;
|
||||||
blue: #61bfff;
|
blue: #61bfff;
|
||||||
|
|
||||||
text-font: "Fira Sans 16";
|
text-font: "Fira Sans 15";
|
||||||
text-mono-font: "Fira Code 14";
|
text-mono-font: "Fira Code 13";
|
||||||
icon-font: "Hurmit Nerd Font Mono 26";
|
icon-font: "Hurmit Nerd Font Mono 26";
|
||||||
|
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
@ -33,29 +33,45 @@ configuration {
|
||||||
|
|
||||||
/**** Layout ****/
|
/**** Layout ****/
|
||||||
window {
|
window {
|
||||||
width: 34%;
|
width: 1000px;
|
||||||
y-offset: -25%;
|
y-offset: -50px;
|
||||||
anchor: north;
|
anchor: north;
|
||||||
location: center;
|
location: center;
|
||||||
border: 1px;
|
border: 1px;
|
||||||
border-radius: 6px;
|
border-radius: 6px 6px 0 0;
|
||||||
children: [ inputbar, listview ];
|
children: [ inputbar, listview ];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
listview {
|
listview {
|
||||||
lines: 16;
|
lines: 12;
|
||||||
fixed-height: false;
|
fixed-height: false;
|
||||||
/* reverse: true; */
|
/* reverse: true; */
|
||||||
margin: -2px 0 0;
|
columns: 2;
|
||||||
columns: 1;
|
|
||||||
scrollbar: true;
|
scrollbar: true;
|
||||||
spacing: 1px;
|
spacing: 1px;
|
||||||
|
/* Remove strange gap between listview and inputbar */
|
||||||
|
margin: -2px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
TODO Not supported in stable branch of rofi
|
||||||
|
@media only (max-height: 1080px) {
|
||||||
|
window {
|
||||||
|
y-offset: -30%;
|
||||||
|
}
|
||||||
|
listview {
|
||||||
|
lines: 14;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
scrollbar {
|
scrollbar {
|
||||||
handle-width: 1px;
|
handle-width: 1px;
|
||||||
}
|
}
|
||||||
inputbar {
|
inputbar {
|
||||||
children: [ textbox-icon, prompt, entry ];
|
children: [ textbox-icon, prompt, entry ];
|
||||||
border: 0 0 1px;
|
border: 0 0 0;
|
||||||
}
|
}
|
||||||
textbox-icon, prompt {
|
textbox-icon, prompt {
|
||||||
padding: 11px;
|
padding: 11px;
|
||||||
|
@ -67,7 +83,7 @@ textbox-icon {
|
||||||
padding: 7px -6px 0;
|
padding: 7px -6px 0;
|
||||||
}
|
}
|
||||||
entry, element {
|
entry, element {
|
||||||
padding: 11px 14px;
|
padding: 10px 13px;
|
||||||
}
|
}
|
||||||
textbox {
|
textbox {
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
|
|
|
@ -2,8 +2,12 @@
|
||||||
|
|
||||||
@import "config.rasi"
|
@import "config.rasi"
|
||||||
|
|
||||||
|
listview {
|
||||||
|
columns: 1;
|
||||||
|
}
|
||||||
|
|
||||||
inputbar {
|
inputbar {
|
||||||
width: 25%;
|
width: 1100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
textbox-icon {
|
textbox-icon {
|
||||||
|
@ -14,6 +18,10 @@ prompt {
|
||||||
enabled: false;
|
enabled: false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Elements are tab-delimited, which look weird in the default variable-pitch
|
||||||
|
* font, so use a monospace one.
|
||||||
|
*/
|
||||||
element {
|
element {
|
||||||
font: "Fira Code 12";
|
font: "Fira Code 12";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue