initial commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
/* =========================================================================
|
||||
* rofi — Catppuccin Macchiato
|
||||
* Font: Inconsolata Nerd Font
|
||||
* Docs: man 5 rofi-theme
|
||||
* ========================================================================= */
|
||||
|
||||
configuration {
|
||||
modes: "drun,run,window,ssh";
|
||||
font: "Inconsolata Nerd Font 12";
|
||||
|
||||
show-icons: true;
|
||||
icon-theme: "Papirus-Dark";
|
||||
display-drun: " Apps";
|
||||
display-run: " Run";
|
||||
display-window: " Window";
|
||||
display-ssh: " SSH";
|
||||
drun-display-format: "{name}";
|
||||
window-format: "{w} · {c} · {t}";
|
||||
|
||||
terminal: "kitty";
|
||||
ssh-client: "ssh";
|
||||
ssh-command: "{terminal} -e {ssh-client} {host}";
|
||||
|
||||
matching: "fuzzy";
|
||||
sort: true;
|
||||
sorting-method: "fzf";
|
||||
drun-match-fields: "name,generic,exec,categories,keywords";
|
||||
drun-use-desktop-cache: false;
|
||||
|
||||
hover-select: true;
|
||||
me-select-entry: "";
|
||||
me-accept-entry: "MousePrimary";
|
||||
|
||||
kb-mode-next: "Shift+Right,Control+Tab";
|
||||
kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab";
|
||||
kb-row-up: "Up,Control+k";
|
||||
kb-row-down: "Down,Control+j";
|
||||
kb-remove-to-eol: "";
|
||||
}
|
||||
|
||||
@theme "~/.config/rofi/themes/catppuccin-macchiato.rasi"
|
||||
Executable
+41
@@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env bash
|
||||
# ---------------------------------------------------------------------------
|
||||
# rofi power menu — lock / logout / suspend / hibernate / reboot / shutdown
|
||||
# Destructive entries ask for confirmation before firing.
|
||||
# ---------------------------------------------------------------------------
|
||||
set -euo pipefail
|
||||
|
||||
THEME="$HOME/.config/rofi/themes/powermenu.rasi"
|
||||
LOCK_CMD=(betterlockscreen --lock dimblur)
|
||||
|
||||
lock=" Lock"
|
||||
logout=" Log out"
|
||||
suspend=" Suspend"
|
||||
hibernate=" Hibernate"
|
||||
reboot=" Reboot"
|
||||
shutdown=" Shut down"
|
||||
|
||||
menu() {
|
||||
printf '%s\n' "$lock" "$logout" "$suspend" "$hibernate" "$reboot" "$shutdown" |
|
||||
rofi -dmenu -i \
|
||||
-theme "$THEME" \
|
||||
-p " $(whoami)@$(hostname)" \
|
||||
-select "$lock"
|
||||
}
|
||||
|
||||
confirm() {
|
||||
local answer
|
||||
answer=$(printf ' No\n Yes\n' |
|
||||
rofi -dmenu -i -theme "$THEME" -p "$1" -select " No")
|
||||
[[ "$answer" == *Yes* ]]
|
||||
}
|
||||
|
||||
case "$(menu)" in
|
||||
"$lock") "${LOCK_CMD[@]}" ;;
|
||||
"$logout") confirm "Log out?" && i3-msg exit ;;
|
||||
"$suspend") "${LOCK_CMD[@]}" & sleep 0.3; systemctl suspend ;;
|
||||
"$hibernate") confirm "Hibernate?" && { "${LOCK_CMD[@]}" & sleep 0.3; systemctl hibernate; } ;;
|
||||
"$reboot") confirm "Reboot?" && systemctl reboot ;;
|
||||
"$shutdown") confirm "Shut down?" && systemctl poweroff ;;
|
||||
*) exit 0 ;;
|
||||
esac
|
||||
@@ -0,0 +1,195 @@
|
||||
/* =========================================================================
|
||||
* Catppuccin Macchiato theme for rofi
|
||||
* ========================================================================= */
|
||||
|
||||
* {
|
||||
rosewater: #f4dbd6ff;
|
||||
flamingo: #f0c6c6ff;
|
||||
pink: #f5bde6ff;
|
||||
mauve: #c6a0f6ff;
|
||||
red: #ed8796ff;
|
||||
maroon: #ee99a0ff;
|
||||
peach: #f5a97fff;
|
||||
yellow: #eed49fff;
|
||||
green: #a6da95ff;
|
||||
teal: #8bd5caff;
|
||||
sky: #91d7e3ff;
|
||||
sapphire: #7dc4e4ff;
|
||||
blue: #8aadf4ff;
|
||||
lavender: #b7bdf8ff;
|
||||
text: #cad3f5ff;
|
||||
subtext1: #b8c0e0ff;
|
||||
subtext0: #a5adcbff;
|
||||
overlay2: #939ab7ff;
|
||||
overlay1: #8087a2ff;
|
||||
overlay0: #6e738dff;
|
||||
surface2: #5b6078ff;
|
||||
surface1: #494d64ff;
|
||||
surface0: #363a4fff;
|
||||
base: #24273aff;
|
||||
mantle: #1e2030ff;
|
||||
crust: #181926ff;
|
||||
|
||||
background: @base;
|
||||
background-alt: @surface0;
|
||||
foreground: @text;
|
||||
selected: @mauve;
|
||||
active: @green;
|
||||
urgent: @red;
|
||||
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
spacing: 0;
|
||||
}
|
||||
|
||||
window {
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 640px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
|
||||
enabled: true;
|
||||
border-radius: 12px;
|
||||
border: 2px solid;
|
||||
border-color: @mauve;
|
||||
background-color: @background;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 0px;
|
||||
padding: 0px;
|
||||
background-color: transparent;
|
||||
children: [ "inputbar", "message", "listview" ];
|
||||
}
|
||||
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
padding: 14px 16px;
|
||||
background-color: @mantle;
|
||||
text-color: @foreground;
|
||||
children: [ "prompt", "entry" ];
|
||||
}
|
||||
|
||||
prompt {
|
||||
enabled: true;
|
||||
background-color: transparent;
|
||||
text-color: @mauve;
|
||||
}
|
||||
|
||||
entry {
|
||||
enabled: true;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: text;
|
||||
placeholder: "Search…";
|
||||
placeholder-color: @overlay0;
|
||||
}
|
||||
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px 16px;
|
||||
background-color: @surface0;
|
||||
text-color: @foreground;
|
||||
}
|
||||
|
||||
textbox {
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 1;
|
||||
lines: 10;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: true;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
|
||||
spacing: 2px;
|
||||
padding: 10px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
scrollbar {
|
||||
handle-width: 4px;
|
||||
handle-color: @surface2;
|
||||
border-radius: 8px;
|
||||
background-color: @mantle;
|
||||
}
|
||||
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
element normal.normal { background-color: transparent; text-color: @foreground; }
|
||||
element normal.urgent { background-color: transparent; text-color: @urgent; }
|
||||
element normal.active { background-color: transparent; text-color: @active; }
|
||||
|
||||
element selected.normal { background-color: @selected; text-color: @crust; }
|
||||
element selected.urgent { background-color: @urgent; text-color: @crust; }
|
||||
element selected.active { background-color: @active; text-color: @crust; }
|
||||
|
||||
element alternate.normal { background-color: transparent; text-color: @foreground; }
|
||||
element alternate.urgent { background-color: transparent; text-color: @urgent; }
|
||||
element alternate.active { background-color: transparent; text-color: @active; }
|
||||
|
||||
element-icon {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
size: 24px;
|
||||
cursor: inherit;
|
||||
}
|
||||
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
highlight: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
mode-switcher {
|
||||
enabled: true;
|
||||
spacing: 0px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 8px;
|
||||
background-color: @surface0;
|
||||
text-color: @overlay1;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button selected {
|
||||
background-color: @mauve;
|
||||
text-color: @crust;
|
||||
}
|
||||
|
||||
error-message {
|
||||
padding: 16px;
|
||||
border-radius: 12px;
|
||||
background-color: @base;
|
||||
text-color: @red;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/* Compact variant of the Macchiato theme, used by powermenu.sh */
|
||||
@import "catppuccin-macchiato.rasi"
|
||||
|
||||
window {
|
||||
width: 360px;
|
||||
border-color: @red;
|
||||
}
|
||||
|
||||
listview {
|
||||
lines: 6;
|
||||
columns: 1;
|
||||
}
|
||||
|
||||
element {
|
||||
padding: 10px 14px;
|
||||
}
|
||||
|
||||
element selected.normal {
|
||||
background-color: @red;
|
||||
text-color: @crust;
|
||||
}
|
||||
|
||||
prompt {
|
||||
text-color: @red;
|
||||
}
|
||||
Reference in New Issue
Block a user