1

Rofi: Update colorscheme + menus

This commit is contained in:
2024-10-14 15:00:53 +02:00
parent be282e0875
commit 9dac733319
8 changed files with 134 additions and 147 deletions

View File

@ -1,7 +0,0 @@
* {
bg-col-op: rgba(239, 241, 245, 100%);
bg-col: rgba(239, 241, 245, 60%);
fg-col: #4c4f69;
pink: #d20f39;
trans: rgba(255, 255, 255, 0);
}

View File

@ -1,16 +0,0 @@
* {
dark: #2A231C;
light: #EBEBE5;
accent-dark: #463A2E;
accent-light: #865E43;
pastel-a: #797D62;
pastel-b: #9B9B7A;
pastel-c: #D9AE94;
pastel-d: #E5C59E;
pastel-e: #F1DCA7;
pastel-f: #F8D488;
pastel-g: #E4B074;
pastel-h: #D08C60;
pastel-i: #997B66;
}

View File

@ -1,3 +0,0 @@
#!/usr/bin/env fish
cat ~/.config/hypr/keybindings.info | rofi -dmenu -p " keys " -i

View File

@ -1,15 +0,0 @@
#!/usr/bin/env fish
# User chooses lecture
set LECTURE (eza -1 -D ~/Notes/TU | rofi -dmenu -p " lecture " -i)
if test -z $LECTURE
exit
end
# User chooses slides
set DECK (eza -1 ~/Notes/TU/$LECTURE/Lecture | grep ".pdf" | rofi -dmenu -p " deck " -i)
if test -z $DECK
exit
end
xdg-open ~/Notes/TU/$LECTURE/Lecture/$DECK

View File

@ -1,40 +0,0 @@
#!/usr/bin/env fish
# User chooses VPN server, running servers are marked in green
set SERVERS (cat /etc/rofi-vpns)
set PROMPT ""
for SERVER in $SERVERS
set SERVER_RUNNING "$(systemctl list-units $SERVER.service | grep $SERVER.service)"
if test -z $SERVER_RUNNING
set PROMPT $PROMPT$SERVER"\n"
else
set PROMPT $PROMPT"<span foreground=\"green\">$SERVER</span>\n"
end
end
set SERVER (echo -e $PROMPT | rofi -dmenu -p " vpn " -i -markup-rows)
set SERVER (echo -e $SERVER | sd "<.*?>" "")
if not contains $SERVER $SERVERS
exit
end
# User chooses action
set ACTIONS "start" "stop" "status"
set ACTION (echo -e (string join "\n" $ACTIONS) | rofi -dmenu -p " action " -i)
if not contains $ACTION $ACTIONS
exit
end
# Enable wireguard netdev
set COMMAND "systemctl $ACTION $SERVER.service"
set EVAL_RESULT "$(eval $COMMAND)"
if test $ACTION = "status" && test -n "$EVAL_RESULT"
# Display result if it exists
rofi -theme ~/NixFlake/config/rofi/rofi.rasi -e "$EVAL_RESULT"
else if test $ACTION = "start"
# Launch chromium in firejail
# NOTE: With a shared home directory, firejail uses the same instance, so it won't work to
# launch multiple browsers with different VPNs...
# firejail --noprofile --allusers --private="~/.firejail-home" --netns="wg0-$SERVER" chromium --incognito --new-window ipaddress.my &>/dev/null
firejail --noprofile --private --netns="$SERVER" chromium --incognito --new-window ipaddress.my &>/dev/null
end

View File

@ -1,100 +0,0 @@
/*See https://github.com/davatorium/rofi/blob/1.7.3/doc/rofi-theme.5.markdown#basic-structure-1*/
configuration{
modi: "run,drun,ssh,filebrowser";
font: "JetBrainsMono Nerd Font Mono 14";
show-icons: true;
icon-theme: "Papirus";
/*terminal: "alacritty -o font.size=12";*/
terminal: "kitty";
drun-display-format: "{icon} {name}";
disable-history: false;
hide-scrollbar: true;
display-drun: " apps ";
display-run: " run ";
display-filebrowser: " file ";
display-ssh: " ssh ";
sidebar-mode: false;
}
@theme "colors.rasi"
element-text,
element-icon,
mode-switcher {
background-color: inherit;
text-color: inherit;
}
window {
height: 500px;
width: 700px;
border-radius: 0px;
background-color: @bg-col;
}
mainbox {
background-color: @trans;
}
message {
background-color: @trans;
}
error-message {
background-color: @trans;
margin: 0px 0px 20px 0px;
}
textbox {
background-color: @trans;
padding: 6px;
margin: 20px 20px 0px 20px;
border-radius: 3;
}
inputbar {
children: [prompt,entry];
background-color: @trans;
}
prompt {
background-color: @pink;
padding: 6px;
text-color: @bg-col-op;
border-radius: 3px;
margin: 20px 0px 0px 20px;
}
entry {
padding: 6px;
margin: 20px 20px 0px 10px;
text-color: @fg-col;
background-color: @trans;
border-radius: 3px;
}
listview {
border: 0px 0px 0px;
padding: 6px 0px 0px;
margin: 10px 0px 0px 20px;
columns: 1;
background-color: @trans;
}
element {
padding: 5px;
margin: 0px 20px 0px 0px;
background-color: @trans;
text-color: @pink;
border-radius: 3px;
}
element-icon {
size: 25px;
}
element selected {
background-color: @pink;
text-color: @bg-col-op;
}

View File

@ -1,14 +0,0 @@
#!/bin/bash
# NOTE: This script is used in conjunction with the rocm/python docker image
# Install if necessary
if [[ ! -f "/webui-data/stable-diffusion-webui/launch.py" ]]; then
cd /webui-data
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
cd stable-diffusion-webui
python -m pip install --upgrade pip wheel
fi
cd /webui-data/stable-diffusion-webui
REQS_FILE='requirements.txt' python launch.py --precision full --no-half