diff --git a/rofi/bitwarden.rasi b/rofi/bitwarden.rasi
index fdd51ff..50667d5 100644
--- a/rofi/bitwarden.rasi
+++ b/rofi/bitwarden.rasi
@@ -1,29 +1,23 @@
@import "config.rasi"
-
window {
children: [ mainbox ];
}
-
mainbox {
background-color: transparent;
children: [ inputbar, listview, message ];
}
-
element {
children: [ element-icon, element-text ];
}
-
element-icon {
size: 0px;
margin: 0;
}
-
message {
- background-color: @NORD1;
+ background-color: @mantle;
padding: 6px 0 12px 12px;
}
-
textbox {
- text-color: @NORD6;
+ text-color: @text;
background-color: transparent;
}
diff --git a/rofi/config.rasi b/rofi/config.rasi
index acc0c20..c3542e9 100644
--- a/rofi/config.rasi
+++ b/rofi/config.rasi
@@ -4,116 +4,115 @@ configuration {
scroll-method: 1;
show-icons: 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-internet: "NET";
display-dev: "DEV";
display-games: "GMS";
display-system: "SYS";
+ display-office: "DOC";
display-media: "MED";
display-notifications: "NTF";
display-clipboard: "CLP";
display-powermenu: "PWR";
- kb-remove-to-eol: "";
- kb-mode-complete: "";
- kb-remove-char-back: "BackSpace,Shift+BackSpace";
- kb-row-down: "Down,Control+j";
- kb-row-up: "Up,Control+k";
- kb-accept-entry: "Control+m,Return,KP_Enter";
+ kb-mode-next: "Alt+l,Shift+Right,Control+Tab";
+ kb-mode-previous: "Alt+h,Shift+Left,Control+ISO_Left_Tab";
+ kb-row-down: "Down,Control+n,Alt+j";
+ kb-row-up: "Up,Control+p,Alt+k";
}
-
* {
- NORD0: #2e3440;
- NORD1: #3b4252;
- NORD2: #434c5e;
- NORD3: #4c566a;
- NORD4: #d8dee9;
- NORD5: #e5e9f0;
- NORD6: #eceff4;
- NORD7: #8fbcbb;
- NORD8: #88c0d0;
- NORD9: #81a1c1;
- NORD10: #5e81ac;
- NORD11: #bf616a;
- NORD12: #d08770;
- NORD13: #ebcb8b;
- NORD14: #a3be8c;
- NORD15: #b48ead;
- font: "Noto Sans Mono 10";
+ rosewater: #f5e0dc;
+ flamingo: #f2cdcd;
+ pink: #f5c2e7;
+ mauve: #cba6f7;
+ red: #f38ba8;
+ maroon: #eba0ac;
+ peach: #fab387;
+ yellow: #f9e2af;
+ green: #a6e3a1;
+ teal: #94e2d5;
+ sky: #89dceb;
+ sapphire: #74c7ec;
+ blue: #89b4fa;
+ lavender: #b4befe;
+ text: #cdd6f4;
+ subtext1: #bac2de;
+ 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 {
- background-color: @NORD0;
- location: north west;
- anchor: north west;
- width: 540px;
- height: 550px;
- x-offset: 5px;
- y-offset: 5px;
+ background-color: @base;
+ border-color: @surface0;
+ location: center;
+ anchor: center;
+ width: 660px;
+ height: 560px;
+ x-offset: 0px;
+ y-offset: 0px;
padding: 0px;
- border: 0px;
+ border: 1px;
border-radius: 0px;
children: [ sb-mainbox ];
}
-
sb-mainbox {
orientation: horizontal;
spacing: 0px;
children: [ left-bar-container, vertibox ];
}
-
left-bar-container {
- background-color: @NORD0;
+ background-color: @base;
orientation: vertical;
width: 40px;
expand: false;
children: [ mode-switcher ];
}
-
mode-switcher {
orientation: vertical;
spacing: 0px;
padding: 0px;
}
-
button {
- text-color: @NORD4;
+ text-color: @text;
background-color: transparent;
border-color: transparent;
horizontal-align: 0.5;
vertical-align: 0.5;
- padding: 6px 0px;
- border: 0px 0px 0px 2px;
- font: "Noto Sans Mono Bold 8";
+ padding: 8px 0px;
+ border: 0px 0px 0px 0px;
}
-
button selected {
- text-color: @NORD6;
- background-color: @NORD1;
- border-color: @NORD8;
+ text-color: @text;
+ background-color: @surface0;
+ border-color: @lavender;
}
-
vertibox {
- background-color: @NORD0;
+ background-color: @base;
orientation: vertical;
spacing: 0px;
padding: 0px;
children: [ inputbar, listview ];
}
-
inputbar {
background-color: transparent;
+ expand: false;
children: [ entry ];
}
-
entry {
- text-color: @NORD6;
+ text-color: @text;
background-color: transparent;
- placeholder-color: @NORD4;
+ placeholder-color: @subtext0;
padding: 6px;
placeholder: " [search...]";
}
-
listview {
background-color: transparent;
margin: 0px;
@@ -125,42 +124,36 @@ listview {
dynamic: true;
scrollbar: false;
}
-
element {
background-color: transparent;
padding: 8px;
children: [ element-icon, element-text ];
}
-
element normal.normal,
element normal.urgent,
element normal.active {
- text-color: @NORD6;
+ text-color: @text;
background-color: transparent;
}
-
element alternate.normal,
element alternate.urgent,
element alternate.active {
- text-color: @NORD6;
+ text-color: @text;
background-color: transparent;
}
-
element selected.normal,
element selected.urgent,
element selected.active {
- text-color: @NORD4;
- background-color: @NORD1;
- border: 0px 0px 0px 2px;
- border-color: @NORD8;
+ text-color: @text;
+ background-color: @surface0;
+ border: 0px 0px 0px 0px;
+ border-color: @lavender;
}
-
element-icon {
background-color: transparent;
size: 14px;
margin: 0 8px 0 6px;
}
-
element-text {
text-color: inherit;
background-color: transparent;
diff --git a/rofi/password.rasi b/rofi/password.rasi
index 2260705..5d748ac 100644
--- a/rofi/password.rasi
+++ b/rofi/password.rasi
@@ -1,28 +1,24 @@
@import "config.rasi"
-
window {
- width: 540px;
- height: 60px;
+ width: 660px;
+ height: 72px;
children: [ vertibox ];
}
-
vertibox {
children: [ label-box, inputbar ];
}
-
label-box {
- background-color: @NORD1;
+ background-color: @surface0;
+ expand: false;
children: [ prompt ];
}
-
prompt {
- text-color: @NORD4;
- background-color: @NORD1;
- border-color: @NORD8;
- padding: 6px;
- border: 0px 0px 0px 2px;
+ text-color: @text;
+ background-color: @surface0;
+ padding: 8px 6px;
}
-
entry {
placeholder: " [password...]";
+ expand: false;
+ padding: 8px 6px;
}
diff --git a/rofi/rofi-filter b/rofi/rofi-filter
index da88c5d..ae0cce7 100755
--- a/rofi/rofi-filter
+++ b/rofi/rofi-filter
@@ -1,11 +1,9 @@
#!/usr/bin/env bash
-
set -uo pipefail
tmp_dir="/tmp/cliphist"
mkdir -p "$tmp_dir"
mode="${1:-}"
selection="${2:-}"
-
if [[ -n "$selection" ]]; then
if [[ "$mode" == "clipboard" ]]; then
id="${selection%% *}"
@@ -15,11 +13,11 @@ if [[ -n "$selection" ]]; then
printf '%s' "$body" | wl-copy
elif [[ "$mode" == "powermenu" ]]; then
case "$ROFI_INFO" in
- lock) swaylock ;;
- suspend) systemctl suspend ;;
- reboot) systemctl reboot ;;
- shutdown) systemctl poweroff ;;
- logout) loginctl terminate-session "${XDG_SESSION_ID-}" ;;
+ lock) swaylock ;;
+ suspend) systemctl suspend ;;
+ reboot) systemctl reboot ;;
+ shutdown) systemctl poweroff ;;
+ logout) loginctl terminate-session "${XDG_SESSION_ID-}" ;;
esac
else
target_app=$(grep -rl "^Name=${selection}\$" /usr/share/applications/*.desktop 2>/dev/null | head -n1)
@@ -31,7 +29,6 @@ if [[ -n "$selection" ]]; then
fi
exit 0
fi
-
case "$mode" in
clipboard)
find "$tmp_dir" -type f -mmin +30 -delete 2>/dev/null
@@ -42,9 +39,9 @@ case "$mode" in
ext=""
case "$rest" in
*jpeg*|*jpg*) ext="jpg" ;;
- *png*) ext="png" ;;
- *bmp*) ext="bmp" ;;
- *) continue ;;
+ *png*) ext="png" ;;
+ *bmp*) ext="bmp" ;;
+ *) continue ;;
esac
img="$tmp_dir/$id.$ext"
[[ -s "$img" ]] || printf '%s\n' "$id" | clipvault get > "$img" 2>/dev/null
@@ -60,13 +57,14 @@ case "$mode" in
"\(.appname.data): \(.summary.data) — \(.body.data)"
'
;;
- internet|dev|media|games|system)
+ internet|dev|media|office|games|system)
case "$mode" in
internet) category="Network" ;;
- dev) category="Development" ;;
- media) category="AudioVideo" ;;
- games) category="Game" ;;
- system) category="System" ;;
+ dev) category="Development" ;;
+ media) category="AudioVideo" ;;
+ office) category="Office" ;;
+ games) category="Game" ;;
+ system) category="System" ;;
esac
awk -v cat="$category" '
BEGINFILE { name=""; icon=""; match_cat=0 }
@@ -83,10 +81,10 @@ case "$mode" in
;;
powermenu)
echo -e "\0markup-rows\x1ftrue"
- printf '%s\0info\x1flock\n' " lock"
- printf '%s\0info\x1fsuspend\n' " suspend"
- printf '%s\0info\x1freboot\n' " reboot"
- printf '%s\0info\x1fshutdown\n' "⏻ shutdown"
- printf '%s\0info\x1flogout\n' " logout"
+ printf '%s\0info\x1flock\n' " lock"
+ printf '%s\0info\x1fsuspend\n' " suspend"
+ printf '%s\0info\x1freboot\n' " reboot"
+ printf '%s\0info\x1fshutdown\n' " shutdown"
+ printf '%s\0info\x1flogout\n' " logout"
;;
esac