feat: switch to rofi with fitting theme for dmenu and clipboard history

This commit is contained in:
matt1432 2023-05-31 12:26:40 -04:00
parent 230cb0df52
commit 03accde078
21 changed files with 447 additions and 2 deletions

1
rofi/README.md Normal file
View file

@ -0,0 +1 @@
credits: https://github.com/vs66388/Hype-uwu

16
rofi/colors/adapta.rasi Normal file
View file

@ -0,0 +1,16 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #222D32FF;
background-alt: #29353BFF;
foreground: #B8C2C6FF;
selected: #00BCD4FF;
active: #21FF90FF;
urgent: #FF4B60FF;
}

16
rofi/colors/arc.rasi Normal file
View file

@ -0,0 +1,16 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #2F343FFF;
background-alt: #383C4AFF;
foreground: #BAC5D0FF;
selected: #5294E2FF;
active: #98C379FF;
urgent: #E06B74FF;
}

16
rofi/colors/black.rasi Normal file
View file

@ -0,0 +1,16 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #000000FF;
background-alt: #101010FF;
foreground: #FFFFFFFF;
selected: #62AEEFFF;
active: #98C379FF;
urgent: #E06B74FF;
}

View file

@ -0,0 +1,16 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #1E1D2FFF;
background-alt: #282839FF;
foreground: #D9E0EEFF;
selected: #7AA2F7FF;
active: #ABE9B3FF;
urgent: #F28FADFF;
}

View file

@ -0,0 +1,16 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #000B1EFF;
background-alt: #0A1528FF;
foreground: #0ABDC6FF;
selected: #0ABDC6FF;
active: #00FF00FF;
urgent: #FF0000FF;
}

16
rofi/colors/dracula.rasi Normal file
View file

@ -0,0 +1,16 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #1E1F29FF;
background-alt: #282A36FF;
foreground: #FFFFFFFF;
selected: #BD93F9FF;
active: #50FA7BFF;
urgent: #FF5555FF;
}

View file

@ -0,0 +1,16 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #323D43FF;
background-alt: #3C474DFF;
foreground: #DAD1BEFF;
selected: #7FBBB3FF;
active: #A7C080FF;
urgent: #E67E80FF;
}

16
rofi/colors/gruvbox.rasi Normal file
View file

@ -0,0 +1,16 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #282828FF;
background-alt: #353535FF;
foreground: #EBDBB2FF;
selected: #83A598FF;
active: #B8BB26FF;
urgent: #FB4934FF;
}

16
rofi/colors/lovelace.rasi Normal file
View file

@ -0,0 +1,16 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #1D1F28FF;
background-alt: #282A36FF;
foreground: #FDFDFDFF;
selected: #79E6F3FF;
active: #5ADECDFF;
urgent: #F37F97FF;
}

16
rofi/colors/navy.rasi Normal file
View file

@ -0,0 +1,16 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #021B21FF;
background-alt: #0C252BFF;
foreground: #F2F1B9FF;
selected: #44B5B1FF;
active: #7CBF9EFF;
urgent: #C2454EFF;
}

16
rofi/colors/nord.rasi Normal file
View file

@ -0,0 +1,16 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #2E3440FF;
background-alt: #383E4AFF;
foreground: #E5E9F0FF;
selected: #81A1C1FF;
active: #A3BE8CFF;
urgent: #BF616AFF;
}

16
rofi/colors/onedark.rasi Normal file
View file

@ -0,0 +1,16 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #1E2127FF;
background-alt: #282B31FF;
foreground: #FFFFFFFF;
selected: #61AFEFFF;
active: #98C379FF;
urgent: #E06C75FF;
}

16
rofi/colors/paper.rasi Normal file
View file

@ -0,0 +1,16 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #F1F1F1FF;
background-alt: #E0E0E0FF;
foreground: #252525FF;
selected: #008EC4FF;
active: #10A778FF;
urgent: #C30771FF;
}

View file

@ -0,0 +1,16 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #002B36FF;
background-alt: #073642FF;
foreground: #EEE8D5FF;
selected: #268BD2FF;
active: #859900FF;
urgent: #DC322FFF;
}

View file

@ -0,0 +1,16 @@
/**
*
* Author : Levi Lacoss (fishyfishfish55)
* Github : @fishyfishfish55
*
* Colors
**/
* {
background: #15161EFF;
background-alt: #1A1B26FF;
foreground: #C0CAF5FF;
selected: #33467CFF;
active: #414868FF;
urgent: #F7768EFF;
}

16
rofi/colors/yousai.rasi Normal file
View file

@ -0,0 +1,16 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #F5E7DEFF;
background-alt: #EBDCD2FF;
foreground: #34302DFF;
selected: #D97742FF;
active: #BF8F60FF;
urgent: #B23636FF;
}

176
rofi/config.rasi Normal file
View file

@ -0,0 +1,176 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Rofi Theme File
* Rofi Version: 1.7.3
**/
/*****----- Configuration -----*****/
configuration {
modi: "drun";
show-icons: true;
display-drun: "";
drun-display-format: "{name}";
}
/*****----- Global Properties -----*****/
@import "~/.config/rofi/colors/dracula.rasi"
* {
font: "Product Sans 12";
}
/*****----- Main Window -----*****/
window {
transparency: "real";
location: center;
anchor: center;
fullscreen: false;
width: 800px;
height: 600px;
x-offset: 0px;
y-offset: 0px;
enabled: true;
margin: 0px;
padding: 0px;
border: 5px solid;
border-radius: 12px;
border-color: #0f111a;
// border-color: @selected;
background-color: @background;
cursor: "default";
}
/*****----- Main Box -----*****/
mainbox {
enabled: true;
spacing: 0px;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 0px 0px 0px 0px;
border-color: @selected;
background-color: transparent;
children: [ "inputbar", "listview" ];
}
/*****----- Inputbar -----*****/
inputbar {
enabled: true;
spacing: 10px;
margin: 0px;
padding: 15px;
border: 0px solid;
border-radius: 0px;
border-color: @selected;
background-color: @selected;
text-color: @background;
children: [ "prompt", "entry" ];
}
prompt {
enabled: true;
background-color: inherit;
text-color: inherit;
}
textbox-prompt-colon {
enabled: true;
expand: false;
str: "::";
background-color: inherit;
text-color: inherit;
}
entry {
enabled: true;
background-color: inherit;
text-color: inherit;
cursor: text;
placeholder: "Search...";
placeholder-color: inherit;
}
/*****----- Listview -----*****/
listview {
enabled: true;
columns: 1;
lines: 6;
cycle: true;
dynamic: true;
scrollbar: true;
layout: vertical;
reverse: false;
fixed-height: true;
fixed-columns: true;
spacing: 5px;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 0px;
border-color: @selected;
background-color: transparent;
text-color: @foreground;
cursor: "default";
}
scrollbar {
handle-width: 5px ;
handle-color: @selected;
border-radius: 0px;
background-color: @background-alt;
}
/*****----- Elements -----*****/
element {
enabled: true;
spacing: 10px;
margin: 0px;
padding: 8px;
border: 0px solid;
border-radius: 0px;
border-color: @selected;
background-color: transparent;
text-color: @foreground;
cursor: pointer;
}
element normal.normal {
background-color: @background;
text-color: @foreground;
}
element selected.normal {
background-color: @background-alt;
text-color: @foreground;
}
element-icon {
background-color: transparent;
text-color: inherit;
size: 32px;
cursor: inherit;
}
element-text {
background-color: transparent;
text-color: inherit;
highlight: inherit;
cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.0;
}
/*****----- Message -----*****/
error-message {
padding: 15px;
border: 2px solid;
border-radius: 12px;
border-color: @selected;
background-color: @background;
text-color: @foreground;
}
textbox {
background-color: @background;
text-color: @foreground;
vertical-align: 0.5;
horizontal-align: 0.0;
highlight: none;
}

6
rofi/dmenu.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
# Run
rofi -dmenu \
-theme ~/.config/rofi/config.rasi \
-p ""

6
rofi/launcher.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
## Run
rofi \
-show drun \
-theme ~/.config/rofi/config.rasi

View file

@ -14,7 +14,7 @@ set $right l
# misc # misc
set $scripts $HOME/.config/sway/scripts set $scripts $HOME/.config/sway/scripts
set $term alacritty set $term alacritty
set $menu wofi --show drun --allow-images -i --display-drun "" set $menu "~/.config/rofi/launcher.sh"
set $bar waybar set $bar waybar
font pango:SF Mono Regular 10 font pango:SF Mono Regular 10
@ -60,7 +60,7 @@ exec $scripts/lose-focus.sh
# Clipboard manager # Clipboard manager
exec wl-paste --watch cliphist store exec wl-paste --watch cliphist store
bindsym $mod+v exec cliphist list | wofi -dmenu | cliphist decode | wl-copy bindsym $mod+v exec cliphist list | ~/.config/rofi/dmenu.sh | cliphist decode | wl-copy
# OSD window # OSD window
exec swayosd exec swayosd