feat: rofi themes
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -12,6 +12,7 @@
|
|||||||
!nnn/
|
!nnn/
|
||||||
!polybar/
|
!polybar/
|
||||||
!ranger/
|
!ranger/
|
||||||
|
!rofi/
|
||||||
!utils/
|
!utils/
|
||||||
!sxhkd/
|
!sxhkd/
|
||||||
!wired/
|
!wired/
|
||||||
@@ -20,4 +21,3 @@
|
|||||||
!starship.toml
|
!starship.toml
|
||||||
!wp
|
!wp
|
||||||
!README.md
|
!README.md
|
||||||
|
|
||||||
|
|||||||
11
rofi/config.rasi
Normal file
11
rofi/config.rasi
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
configuration {
|
||||||
|
modes: [ combi ];
|
||||||
|
combi-modes: [ window, drun, run ];
|
||||||
|
}
|
||||||
|
|
||||||
|
@theme "gruvbox-light"
|
||||||
|
|
||||||
|
entry, element-text {
|
||||||
|
text-color: red;
|
||||||
|
background-color: rgb(0,0,255);
|
||||||
|
}
|
||||||
154
rofi/theme.rasi
Normal file
154
rofi/theme.rasi
Normal file
@@ -0,0 +1,154 @@
|
|||||||
|
/**
|
||||||
|
* Rofi default theme
|
||||||
|
**/
|
||||||
|
* {
|
||||||
|
highlight: bold italic ;
|
||||||
|
background: #f8edeb;
|
||||||
|
background-alt: Red;
|
||||||
|
separatorcolor: #d6c4c4;
|
||||||
|
highlight: #246a73;
|
||||||
|
foreground: #141c21;
|
||||||
|
normal-background: var(background);
|
||||||
|
urgent-background: var(background);
|
||||||
|
active-background: var(background);
|
||||||
|
|
||||||
|
normal-foreground: var(foreground);
|
||||||
|
urgent-foreground: var(foreground);
|
||||||
|
active-foreground: var(foreground);
|
||||||
|
|
||||||
|
selected-normal-background: var(background-alt);
|
||||||
|
selected-urgent-background: var(background-alt);
|
||||||
|
selected-active-background: var(background-alt);
|
||||||
|
selected-normal-foreground: var(foreground);
|
||||||
|
selected-urgent-foreground: var(foreground);
|
||||||
|
selected-active-foreground: var(foreground);
|
||||||
|
|
||||||
|
alternate-normal-background: var(background);
|
||||||
|
alternate-urgent-background: var(background);
|
||||||
|
alternate-active-background: var(background);
|
||||||
|
alternate-normal-foreground: var(foreground);
|
||||||
|
alternate-urgent-foreground: var(foreground);
|
||||||
|
alternate-active-foreground: var(foreground);
|
||||||
|
|
||||||
|
scrollbar: true;
|
||||||
|
scrollbar-handle: #415a77;
|
||||||
|
}
|
||||||
|
window {
|
||||||
|
padding: 2;
|
||||||
|
background-color: var(background);
|
||||||
|
border: 2;
|
||||||
|
border-radius: 8px;
|
||||||
|
width: 14%;
|
||||||
|
}
|
||||||
|
mainbox {
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
message {
|
||||||
|
padding: 1px ;
|
||||||
|
border-color: var(separatorcolor);
|
||||||
|
border: 2px 0px 0px ;
|
||||||
|
}
|
||||||
|
textbox {
|
||||||
|
highlight: var(highlight);
|
||||||
|
text-color: var(foreground);
|
||||||
|
}
|
||||||
|
listview {
|
||||||
|
padding: 2px 0px 0px ;
|
||||||
|
scrollbar: var(scrollbar);
|
||||||
|
border-color: var(separatorcolor);
|
||||||
|
spacing: 2px ;
|
||||||
|
border: 2px 0px 0px ;
|
||||||
|
}
|
||||||
|
element {
|
||||||
|
padding: 2px ;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
element normal.normal {
|
||||||
|
background-color: var(normal-background);
|
||||||
|
text-color: var(normal-foreground);
|
||||||
|
}
|
||||||
|
element normal.urgent {
|
||||||
|
background-color: var(urgent-background);
|
||||||
|
text-color: var(urgent-foreground);
|
||||||
|
}
|
||||||
|
element normal.active {
|
||||||
|
background-color: var(active-background);
|
||||||
|
text-color: var(active-foreground);
|
||||||
|
}
|
||||||
|
element selected.normal {
|
||||||
|
background-color: var(selected-normal-background);
|
||||||
|
text-color: var(selected-normal-foreground);
|
||||||
|
}
|
||||||
|
element selected.urgent {
|
||||||
|
background-color: var(selected-urgent-background);
|
||||||
|
text-color: var(selected-urgent-foreground);
|
||||||
|
}
|
||||||
|
element selected.active {
|
||||||
|
background-color: var(selected-active-background);
|
||||||
|
text-color: var(selected-active-foreground);
|
||||||
|
}
|
||||||
|
element alternate.normal {
|
||||||
|
background-color: var(alternate-normal-background);
|
||||||
|
text-color: var(alternate-normal-foreground);
|
||||||
|
}
|
||||||
|
element alternate.urgent {
|
||||||
|
background-color: var(alternate-urgent-background);
|
||||||
|
text-color: var(alternate-urgent-foreground);
|
||||||
|
}
|
||||||
|
element alternate.active {
|
||||||
|
background-color: var(alternate-active-background);
|
||||||
|
text-color: var(alternate-active-foreground);
|
||||||
|
}
|
||||||
|
scrollbar {
|
||||||
|
width: 4px ;
|
||||||
|
padding: 0;
|
||||||
|
handle-width: 8px ;
|
||||||
|
border: 0;
|
||||||
|
handle-color: var(scrollbar-handle);
|
||||||
|
}
|
||||||
|
mode-switcher {
|
||||||
|
border-color: var(separatorcolor);
|
||||||
|
border: 2px 0px 0px ;
|
||||||
|
}
|
||||||
|
inputbar {
|
||||||
|
padding: 2px ;
|
||||||
|
spacing: 0;
|
||||||
|
text-color: var(normal-foreground);
|
||||||
|
children: [ "prompt","textbox-prompt-sep","entry","case-indicator" ];
|
||||||
|
}
|
||||||
|
case-indicator {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: var(normal-foreground);
|
||||||
|
}
|
||||||
|
entry {
|
||||||
|
background-color: var(background);
|
||||||
|
spacing: 0;
|
||||||
|
text-color: var(foreground);
|
||||||
|
}
|
||||||
|
prompt {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: var(normal-foreground);
|
||||||
|
}
|
||||||
|
button {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: var(normal-foreground);
|
||||||
|
}
|
||||||
|
button selected {
|
||||||
|
background-color: var(selected-normal-background);
|
||||||
|
text-color: var(selected-normal-foreground);
|
||||||
|
}
|
||||||
|
textbox-prompt-sep {
|
||||||
|
margin: 0px 0.3000em 0px 0px ;
|
||||||
|
expand: false;
|
||||||
|
str: ":";
|
||||||
|
text-color: var(normal-foreground);
|
||||||
|
}
|
||||||
|
element-text {
|
||||||
|
background-color: var(background);
|
||||||
|
text-color: var(foreground);
|
||||||
|
}
|
||||||
|
element-icon {
|
||||||
|
background-color: inherit;
|
||||||
|
text-color: inherit;
|
||||||
|
}
|
||||||
@@ -50,7 +50,7 @@ for sink in "${sink_list[@]}"; do
|
|||||||
menu_options="$menu_options$formal_name"
|
menu_options="$menu_options$formal_name"
|
||||||
done
|
done
|
||||||
|
|
||||||
chosen_option="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p 'Audio outputs' -width 12 -line-padding 3 -lines 6 <<< "$menu_options")"
|
chosen_option="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p 'Audio outputs' -width 1 -lines 5 -theme ~/.config/rofi/theme.rasi <<< "$menu_options")"
|
||||||
|
|
||||||
[[ "$chosen_option" == "" ]] && exit 0
|
[[ "$chosen_option" == "" ]] && exit 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user