style(rofi): update theme and add new launcher category

This commit is contained in:
pyrschtjag committed 2026-10-30 11:09:07 +04:00
1 parent 596cec1e99
commit 7180a46e7d
4 files changed
+73 -92

No files matched your search

+2 -8
View File
@@ -1,29 +1,23 @@
@import "config.rasi" @import "config.rasi"
window { window {
children: [ mainbox ]; children: [ mainbox ];
} }
mainbox { mainbox {
background-color: transparent; background-color: transparent;
children: [ inputbar, listview, message ]; children: [ inputbar, listview, message ];
} }
element { element {
children: [ element-icon, element-text ]; children: [ element-icon, element-text ];
} }
element-icon { element-icon {
size: 0px; size: 0px;
margin: 0; margin: 0;
} }
message { message {
background-color: @NORD1; background-color: @mantle;
padding: 6px 0 12px 12px; padding: 6px 0 12px 12px;
} }
textbox { textbox {
text-color: @NORD6; text-color: @text;
background-color: transparent; background-color: transparent;
} }
+59 -66
View File
@@ -4,116 +4,115 @@ configuration {
scroll-method: 1; scroll-method: 1;
show-icons: true; show-icons: true;
sidebar-mode: true; sidebar-mode: true;
modi: "drun,internet:~/.config/rofi/rofi-filter internet,dev:~/.config/rofi/rofi-filter dev,games:~/.config/rofi/rofi-filter games,system:~/.config/rofi/rofi-filter system,media:~/.config/rofi/rofi-filter media,notifications:~/.config/rofi/rofi-filter notifications,clipboard:~/.config/rofi/rofi-filter clipboard,powermenu:~/.config/rofi/rofi-filter powermenu"; modi: "drun,internet:~/.config/rofi/rofi-filter internet,dev:~/.config/rofi/rofi-filter dev,games:~/.config/rofi/rofi-filter games,system:~/.config/rofi/rofi-filter system,media:~/.config/rofi/rofi-filter media,office:~/.config/rofi/rofi-filter office,notifications:~/.config/rofi/rofi-filter notifications,clipboard:~/.config/rofi/rofi-filter clipboard,powermenu:~/.config/rofi/rofi-filter powermenu";
display-drun: "ALL"; display-drun: "ALL";
display-internet: "NET"; display-internet: "NET";
display-dev: "DEV"; display-dev: "DEV";
display-games: "GMS"; display-games: "GMS";
display-system: "SYS"; display-system: "SYS";
display-office: "DOC";
display-media: "MED"; display-media: "MED";
display-notifications: "NTF"; display-notifications: "NTF";
display-clipboard: "CLP"; display-clipboard: "CLP";
display-powermenu: "PWR"; display-powermenu: "PWR";
kb-remove-to-eol: ""; kb-mode-next: "Alt+l,Shift+Right,Control+Tab";
kb-mode-complete: ""; kb-mode-previous: "Alt+h,Shift+Left,Control+ISO_Left_Tab";
kb-remove-char-back: "BackSpace,Shift+BackSpace"; kb-row-down: "Down,Control+n,Alt+j";
kb-row-down: "Down,Control+j"; kb-row-up: "Up,Control+p,Alt+k";
kb-row-up: "Up,Control+k";
kb-accept-entry: "Control+m,Return,KP_Enter";
} }
* { * {
NORD0: #2e3440; rosewater: #f5e0dc;
NORD1: #3b4252; flamingo: #f2cdcd;
NORD2: #434c5e; pink: #f5c2e7;
NORD3: #4c566a; mauve: #cba6f7;
NORD4: #d8dee9; red: #f38ba8;
NORD5: #e5e9f0; maroon: #eba0ac;
NORD6: #eceff4; peach: #fab387;
NORD7: #8fbcbb; yellow: #f9e2af;
NORD8: #88c0d0; green: #a6e3a1;
NORD9: #81a1c1; teal: #94e2d5;
NORD10: #5e81ac; sky: #89dceb;
NORD11: #bf616a; sapphire: #74c7ec;
NORD12: #d08770; blue: #89b4fa;
NORD13: #ebcb8b; lavender: #b4befe;
NORD14: #a3be8c; text: #cdd6f4;
NORD15: #b48ead; subtext1: #bac2de;
font: "Noto Sans Mono 10"; subtext0: #a6adc8;
overlay2: #9399b2;
overlay1: #7f849c;
overlay0: #6c7086;
surface2: #585b70;
surface1: #45475a;
surface0: #313244;
base: #1e1e2e;
mantle: #181825;
crust: #11111b;
font: "JetBrains Mono 10";
} }
window { window {
background-color: @NORD0; background-color: @base;
location: north west; border-color: @surface0;
anchor: north west; location: center;
width: 540px; anchor: center;
height: 550px; width: 660px;
x-offset: 5px; height: 560px;
y-offset: 5px; x-offset: 0px;
y-offset: 0px;
padding: 0px; padding: 0px;
border: 0px; border: 1px;
border-radius: 0px; border-radius: 0px;
children: [ sb-mainbox ]; children: [ sb-mainbox ];
} }
sb-mainbox { sb-mainbox {
orientation: horizontal; orientation: horizontal;
spacing: 0px; spacing: 0px;
children: [ left-bar-container, vertibox ]; children: [ left-bar-container, vertibox ];
} }
left-bar-container { left-bar-container {
background-color: @NORD0; background-color: @base;
orientation: vertical; orientation: vertical;
width: 40px; width: 40px;
expand: false; expand: false;
children: [ mode-switcher ]; children: [ mode-switcher ];
} }
mode-switcher { mode-switcher {
orientation: vertical; orientation: vertical;
spacing: 0px; spacing: 0px;
padding: 0px; padding: 0px;
} }
button { button {
text-color: @NORD4; text-color: @text;
background-color: transparent; background-color: transparent;
border-color: transparent; border-color: transparent;
horizontal-align: 0.5; horizontal-align: 0.5;
vertical-align: 0.5; vertical-align: 0.5;
padding: 6px 0px; padding: 8px 0px;
border: 0px 0px 0px 2px; border: 0px 0px 0px 0px;
font: "Noto Sans Mono Bold 8";
} }
button selected { button selected {
text-color: @NORD6; text-color: @text;
background-color: @NORD1; background-color: @surface0;
border-color: @NORD8; border-color: @lavender;
} }
vertibox { vertibox {
background-color: @NORD0; background-color: @base;
orientation: vertical; orientation: vertical;
spacing: 0px; spacing: 0px;
padding: 0px; padding: 0px;
children: [ inputbar, listview ]; children: [ inputbar, listview ];
} }
inputbar { inputbar {
background-color: transparent; background-color: transparent;
expand: false;
children: [ entry ]; children: [ entry ];
} }
entry { entry {
text-color: @NORD6; text-color: @text;
background-color: transparent; background-color: transparent;
placeholder-color: @NORD4; placeholder-color: @subtext0;
padding: 6px; padding: 6px;
placeholder: " [search...]"; placeholder: " [search...]";
} }
listview { listview {
background-color: transparent; background-color: transparent;
margin: 0px; margin: 0px;
@@ -125,42 +124,36 @@ listview {
dynamic: true; dynamic: true;
scrollbar: false; scrollbar: false;
} }
element { element {
background-color: transparent; background-color: transparent;
padding: 8px; padding: 8px;
children: [ element-icon, element-text ]; children: [ element-icon, element-text ];
} }
element normal.normal, element normal.normal,
element normal.urgent, element normal.urgent,
element normal.active { element normal.active {
text-color: @NORD6; text-color: @text;
background-color: transparent; background-color: transparent;
} }
element alternate.normal, element alternate.normal,
element alternate.urgent, element alternate.urgent,
element alternate.active { element alternate.active {
text-color: @NORD6; text-color: @text;
background-color: transparent; background-color: transparent;
} }
element selected.normal, element selected.normal,
element selected.urgent, element selected.urgent,
element selected.active { element selected.active {
text-color: @NORD4; text-color: @text;
background-color: @NORD1; background-color: @surface0;
border: 0px 0px 0px 2px; border: 0px 0px 0px 0px;
border-color: @NORD8; border-color: @lavender;
} }
element-icon { element-icon {
background-color: transparent; background-color: transparent;
size: 14px; size: 14px;
margin: 0 8px 0 6px; margin: 0 8px 0 6px;
} }
element-text { element-text {
text-color: inherit; text-color: inherit;
background-color: transparent; background-color: transparent;
+9 -13
View File
@@ -1,28 +1,24 @@
@import "config.rasi" @import "config.rasi"
window { window {
width: 540px; width: 660px;
height: 60px; height: 72px;
children: [ vertibox ]; children: [ vertibox ];
} }
vertibox { vertibox {
children: [ label-box, inputbar ]; children: [ label-box, inputbar ];
} }
label-box { label-box {
background-color: @NORD1; background-color: @surface0;
expand: false;
children: [ prompt ]; children: [ prompt ];
} }
prompt { prompt {
text-color: @NORD4; text-color: @text;
background-color: @NORD1; background-color: @surface0;
border-color: @NORD8; padding: 8px 6px;
padding: 6px;
border: 0px 0px 0px 2px;
} }
entry { entry {
placeholder: " [password...]"; placeholder: " [password...]";
expand: false;
padding: 8px 6px;
} }
+3 -5
View File
@@ -1,11 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -uo pipefail set -uo pipefail
tmp_dir="/tmp/cliphist" tmp_dir="/tmp/cliphist"
mkdir -p "$tmp_dir" mkdir -p "$tmp_dir"
mode="${1:-}" mode="${1:-}"
selection="${2:-}" selection="${2:-}"
if [[ -n "$selection" ]]; then if [[ -n "$selection" ]]; then
if [[ "$mode" == "clipboard" ]]; then if [[ "$mode" == "clipboard" ]]; then
id="${selection%% *}" id="${selection%% *}"
@@ -31,7 +29,6 @@ if [[ -n "$selection" ]]; then
fi fi
exit 0 exit 0
fi fi
case "$mode" in case "$mode" in
clipboard) clipboard)
find "$tmp_dir" -type f -mmin +30 -delete 2>/dev/null find "$tmp_dir" -type f -mmin +30 -delete 2>/dev/null
@@ -60,11 +57,12 @@ case "$mode" in
"\(.appname.data): \(.summary.data) — \(.body.data)" "\(.appname.data): \(.summary.data) — \(.body.data)"
' '
;; ;;
internet|dev|media|games|system) internet|dev|media|office|games|system)
case "$mode" in case "$mode" in
internet) category="Network" ;; internet) category="Network" ;;
dev) category="Development" ;; dev) category="Development" ;;
media) category="AudioVideo" ;; media) category="AudioVideo" ;;
office) category="Office" ;;
games) category="Game" ;; games) category="Game" ;;
system) category="System" ;; system) category="System" ;;
esac esac
@@ -86,7 +84,7 @@ case "$mode" in
printf '%s\0info\x1flock\n' "<span foreground=\"#88c0d0\"></span> lock" printf '%s\0info\x1flock\n' "<span foreground=\"#88c0d0\"></span> lock"
printf '%s\0info\x1fsuspend\n' "<span foreground=\"#5e81ac\">󰤄</span> suspend" printf '%s\0info\x1fsuspend\n' "<span foreground=\"#5e81ac\">󰤄</span> suspend"
printf '%s\0info\x1freboot\n' "<span foreground=\"#ebcb8b\"></span> reboot" printf '%s\0info\x1freboot\n' "<span foreground=\"#ebcb8b\"></span> reboot"
printf '%s\0info\x1fshutdown\n' "<span foreground=\"#bf616a\">⏻</span> shutdown" printf '%s\0info\x1fshutdown\n' "<span foreground=\"#bf616a\">󰐥</span> shutdown"
printf '%s\0info\x1flogout\n' "<span foreground=\"#b48ead\">󰗽</span> logout" printf '%s\0info\x1flogout\n' "<span foreground=\"#b48ead\">󰗽</span> logout"
;; ;;
esac esac