new rofi tokyo-night theme, updated scripts

This commit is contained in:
joelchrono12 2023-01-13 15:03:40 -06:00
parent 8ac91d5255
commit 79cc8e1ab4
Signed by: chrono
GPG Key ID: E23D9C7FA57497A6
4 changed files with 179 additions and 8 deletions

View File

@ -1,8 +1,8 @@
configuration {
columns: 2;
terminal: "alacritty";
/*theme: "/home/joelchrono12/.config/rofi/themes/centered-nord.rasi";*/
modi: "drun,window,run";
modi: "drun,window,run,emoji";
icon-theme: "Flatery-Blue-Dark";
}
@import "/usr/share/rofi/themes/Arc-Dark.rasi"
@import "/home/chrono/.config/rofi/themes/tokyonight.rasi"
/*@import "/home/chrono/.config/rofi/themes/centered-nord.rasi"*/

View File

@ -16,11 +16,11 @@ chosen=$(echo -e "[Cancel]\nLogout\nShutdown\nReboot System\nEdit config\nEdit d
# https://www.freedesktop.org/software/systemd/man/systemd-sleep.conf.html#Description
if [[ $chosen = "Logout" ]]; then
pkill $current
pkill $current
elif [[ $chosen = "Shutdown" ]]; then
systemctl poweroff
elif [[ $chosen = "Reboot System" ]]; then
systemctl reboot
systemctl reboot
elif [[ $chosen = "Edit config" ]]; then
if [[ $current = "spectrwm" ]]; then
alacritty -e nvim ~/.spectrwm.conf
@ -30,7 +30,7 @@ elif [[ $chosen = "Edit config" ]]; then
alacritty -e nvim ~/.config/leftwm/config.toml
fi
elif [[ $chosen = "Edit dotfiles" ]]; then
~/.config/rofi/scripts/dmenu-edit-configs.sh
~/.config/rofi/scripts/dmenu-edit-configs.sh
elif [[ $chosen = "Edit power menu" ]]; then
alacritty -e nvim $HOME/.config/rofi/scripts/power-menu.sh
alacritty -e nvim $HOME/.config/rofi/scripts/power-menu.sh
fi

View File

@ -15,7 +15,9 @@ while [ $num = 0 ]; do
if [[ $choice = "Edit file" ]]; then
touch $path/$filename.md
echo -e "---\ntitle: $title\nheader: $title\ndescription: $description\ntags: $tags\npermalink: /blog/$filen/\nlayout: post\ndate: $today $(date +"%T") -0500\nhost: fosstodon.org\nusername: joel\ncom_id: idcomments\n---">> $path/$filename.md
echo -e "---\ntitle: $title\nheader: $title\ndescription: $description\ntags: $tags\npermalink: /blog/$filen/\nlayout: post\ndate: $today $(date +"%T") -0600\nhost: fosstodon.org\nusername: joel\ncom_id: idcomments\n---">> $path/$filename.md
echo -e "This is day of [#100DaysToOffload](https://100daystooffload.com)" >> $path/$filename.md
echo -e "{% include reply.html %}" >> $path/$filename.md
num=1
alacritty -e nvim $path/$filename.md & disown
#cp $path/$filename.md ~/Documents

View File

@ -0,0 +1,169 @@
* {
scrollbar: false;
spacing: 7;
bg: #1a1b26;
bg-dark: #1f2335;
bg-highlight: #ad8ee6;
fg: #a9b1d6;
fg-dark: #3b4261;
red-dark: #db4b4b;
red-light: #f7768e;
yellow: #e0af68;
orange: #ff9e64;
gray: #565f89;
background: @bg-dark;
background-color: @background;
foreground: @fg;
border-color: @gray;
separatorcolor: @border-color;
scrollbar-handle: @border-color;
normal-background: @background;
normal-foreground: @foreground;
alternate-normal-background: @bg-dark;
alternate-normal-foreground: @fg;
selected-normal-background: @bg-highlight;
selected-normal-foreground: @bg;
active-background: @orange;
active-foreground: @bg;
alternate-active-background: @active-background;
alternate-active-foreground: @active-foreground;
selected-active-background: @yellow;
selected-active-foreground: @active-foreground;
urgent-background: @red-dark;
urgent-foreground: @background;
alternate-urgent-background: @urgent-background;
alternate-urgent-foreground: @urgent-foreground;
selected-urgent-background: @red-dark;
selected-urgent-foreground: @urgent-foreground;
}
window {
background-color: @background;
border: 2;
padding: 2;
}
mainbox {
border: 0;
padding: 0;
}
message {
border: 2px 0 0;
border-color: @separatorcolor;
padding: 1px;
}
textbox {
highlight: @bg-highlight;
text-color: @foreground;
}
listview {
border: 2px solid 0 0;
padding: 10px 10px;
border-color: @separatorcolor;
spacing: 2px;
scrollbar: @scrollbar;
}
element {
border: 0;
padding: 5px;
border-radius: 8px;
}
element.normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}
element.normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
element.normal.active {
background-color: @active-background;
text-color: @active-foreground;
}
element.selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
element.selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}
element.alternate.normal {
background-color: @alternate-normal-background;
text-color: @alternate-normal-foreground;
}
element.alternate.urgent {
background-color: @alternate-urgent-background;
text-color: @alternate-urgent-foreground;
}
element.alternate.active {
background-color: @alternate-active-background;
text-color: @alternate-active-foreground;
}
scrollbar {
width: 4px;
border: 0;
handle-color: @scrollbar-handle;
handle-width: 8px;
padding: 0;
}
mode-switcher {
border: 2px 0 0;
border-color: @separatorcolor;
}
inputbar {
spacing: 0;
text-color: @normal-foreground;
padding: 2px;
children: [ prompt, textbox-prompt-sep, entry, case-indicator ];
}
case-indicator,
entry,
prompt,
button {
spacing: 0;
text-color: @normal-foreground;
}
button.selected {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
textbox-prompt-sep {
expand: false;
str: ":";
text-color: @normal-foreground;
margin: 0 0.3em 0 0;
}
element-text, element-icon {
background-color: inherit;
text-color: inherit;
}