From 79cc8e1ab43c4b9a84c44710919d0fb9e456c4ae Mon Sep 17 00:00:00 2001 From: joelchrono12 Date: Fri, 13 Jan 2023 15:03:40 -0600 Subject: [PATCH] new rofi tokyo-night theme, updated scripts --- stow_home/rofi/.config/rofi/config.rasi | 6 +- .../rofi/.config/rofi/scripts/power-menu.sh | 8 +- stow_home/rofi/.config/rofi/scripts/qpost.sh | 4 +- .../rofi/.config/rofi/themes/tokyonight.rasi | 169 ++++++++++++++++++ 4 files changed, 179 insertions(+), 8 deletions(-) create mode 100644 stow_home/rofi/.config/rofi/themes/tokyonight.rasi diff --git a/stow_home/rofi/.config/rofi/config.rasi b/stow_home/rofi/.config/rofi/config.rasi index d7f54f2..101b6e0 100644 --- a/stow_home/rofi/.config/rofi/config.rasi +++ b/stow_home/rofi/.config/rofi/config.rasi @@ -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"*/ diff --git a/stow_home/rofi/.config/rofi/scripts/power-menu.sh b/stow_home/rofi/.config/rofi/scripts/power-menu.sh index 6714007..0c7425d 100755 --- a/stow_home/rofi/.config/rofi/scripts/power-menu.sh +++ b/stow_home/rofi/.config/rofi/scripts/power-menu.sh @@ -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 diff --git a/stow_home/rofi/.config/rofi/scripts/qpost.sh b/stow_home/rofi/.config/rofi/scripts/qpost.sh index 0b3fadb..6bd88dc 100755 --- a/stow_home/rofi/.config/rofi/scripts/qpost.sh +++ b/stow_home/rofi/.config/rofi/scripts/qpost.sh @@ -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 diff --git a/stow_home/rofi/.config/rofi/themes/tokyonight.rasi b/stow_home/rofi/.config/rofi/themes/tokyonight.rasi new file mode 100644 index 0000000..d57ec40 --- /dev/null +++ b/stow_home/rofi/.config/rofi/themes/tokyonight.rasi @@ -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; +}