rofi ricing

This commit is contained in:
Rick van Lieshout 2024-06-10 00:30:56 +02:00
parent 1da8b7946f
commit ec10ac7281
5 changed files with 247 additions and 149 deletions

View File

@ -1,163 +1,250 @@
/*
old color theme
----------------
State: 'bg', 'fg', 'bgalt', 'hlbg', 'hlfg'
----------------------------------------------------------------
color-normal: "#1e1e1e, #848484, #1e1e1e, #333333, #f6f6f7";
color-urgent: "#333333, #ef5350, #0000ff, #333333, #f6f6f7";
color-active: "#333333, #ef5350, #0000ff, #333333, #f6f6f7";
color-window: "#1e1e1e, #333333, #333333";
*/
* { * {
/* my vars */ background: #1e1e1e;
background: #1e1e1e; background-alt: #282B31FF;
background-color: @background; background-color: @background;
foreground: #848484; foreground: #FFFFFFFF;
foreground-normal: @foreground; foreground-normal: @foreground;
urgent: #333333; selected: #61AFEFFF;
active-fg: #ef5350; active: #98C379FF;
red: #ff0000; urgent: #E06C75FF;
/* background */
normal-background: @background;
alternate-urgent-background: @background;
lightbg: @background;
alternate-active-background: @background;
alternate-normal-background: @background;
selected-normal-background: rgba ( 57, 66, 73, 100 % );
/* foreground */
normal-foreground: @foreground-normal;
alternate-normal-foreground: @foreground;
selected-normal-foreground: rgba ( 255, 255, 255, 100 % );
selected-urgent-foreground: @urgent;
active-foreground: @active-fg;
urgent-foreground: @red;
alternate-urgent-foreground: @urgent-foreground;
alternate-active-foreground: @active-foreground;
/* borders */
bordercolor: @background;
border-color: @background;
selected-active-foreground: rgba ( 128, 203, 196, 100 % );
lightfg: rgba ( 88, 104, 117, 100 % );
spacing: 2;
separatorcolor: rgba ( 30, 37, 41, 100 % );
urgent-background: rgba ( 39, 50, 56, 100 % );
selected-urgent-background: rgba ( 57, 66, 73, 100 % );
active-background: rgba ( 39, 50, 56, 100 % );
selected-active-background: rgba ( 57, 66, 73, 100 % );
} }
window { * {
background-color: @background; border-colour: var(selected);
border: 1; handle-colour: var(selected);
padding: 5; background-colour: var(background);
foreground-colour: var(foreground);
alternate-background: var(background-alt);
normal-background: var(background);
normal-foreground: var(foreground);
urgent-background: var(urgent);
urgent-foreground: var(background);
active-background: var(active);
active-foreground: var(background);
selected-normal-background: var(selected);
selected-normal-foreground: var(background);
selected-urgent-background: var(active);
selected-urgent-foreground: var(background);
selected-active-background: var(urgent);
selected-active-foreground: var(background);
alternate-normal-background: var(background);
alternate-normal-foreground: var(foreground);
alternate-urgent-background: var(urgent);
alternate-urgent-foreground: var(background);
alternate-active-background: var(active);
alternate-active-foreground: var(background);
} }
mainbox { /*----Main Window */
border: 0; window {
padding: 0; /* properties for window widget */
transparency: "real";
location: center;
anchor: center;
fullscreen: false;
width: 800px;
x-offset: 0px;
y-offset: 0px;
/* properties for all widgets */
enabled: true;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 0px;
border-color: @border-colour;
cursor: "default";
background-color: @background-colour;
} }
message { /*----- Main Box -----*/
border: 1px dash 0px 0px ; mainbox {
border-color: @separatorcolor; enabled: true;
padding: 1px ; spacing: 10px;
margin: 0px;
padding: 30px;
border: 0px solid;
border-radius: 0px 0px 0px 0px;
border-color: @border-colour;
background-color: transparent;
children: [ "inputbar", "listview" ];
} }
textbox { /*----- Inputbar -----*/
text-color: @foreground; inputbar {
enabled: true;
spacing: 10px;
margin: 0px;
padding: 0px 0px 10px 10px;
border: 0px;
border-radius: 0px;
border-color: @border-colour;
background-color: @background-colour;
text-color: @foreground-colour;
children: [ "prompt", "entry" ];
} }
listview { prompt {
fixed-height: 0; enabled: true;
border: 2px dash 0px 0px ; background-color: inherit;
border-color: @separatorcolor; text-color: inherit;
spacing: 2px ;
scrollbar: true;
padding: 2px 0px 0px ;
} }
element { textbox-prompt-colon {
border: 0; enabled: true;
padding: 1px ; expand: false;
str: "::";
background-color: inherit;
text-color: inherit;
} }
element-text { entry {
background-color: inherit; enabled: true;
text-color: inherit; background-color: inherit;
text-color: inherit;
cursor: text;
placeholder: "";
placeholder-color: inherit;
} }
element.normal.normal { /*----- Listview -----*/
background-color: @normal-background; listview {
text-color: @normal-foreground; enabled: true;
columns: 1;
lines: 12;
cycle: true;
dynamic: true;
scrollbar: false;
layout: vertical;
reverse: false;
fixed-height: true;
fixed-columns: true;
spacing: 0px;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 0px;
border-color: @border-colour;
background-color: transparent;
text-color: @foreground-colour;
cursor: "default";
} }
element.normal.urgent { scrollbar {
background-color: @urgent-background; handle-width: 5px ;
text-color: @urgent-foreground; handle-color: @handle-colour;
border-radius: 0px;
background-color: @alternate-background;
} }
element.normal.active { /*----- Elements -----*/
background-color: @active-background; element {
text-color: @active-foreground; enabled: true;
spacing: 10px;
margin: 0px;
padding: 5px;
border: 0px solid;
border-radius: 0px;
border-color: @border-colour;
background-color: transparent;
text-color: @foreground-colour;
cursor: pointer;
} }
element.selected.normal { element normal.normal {
background-color: @selected-normal-background; background-color: var(normal-background);
text-color: @selected-normal-foreground; text-color: var(normal-foreground);
} }
element.selected.urgent { element normal.urgent {
background-color: @selected-urgent-background; background-color: var(urgent-background);
text-color: @selected-urgent-foreground; text-color: var(urgent-foreground);
} }
element.selected.active { element normal.active {
background-color: @selected-active-background; background-color: var(active-background);
text-color: @selected-active-foreground; text-color: var(active-foreground);
} }
element.alternate.normal { element selected.normal {
background-color: @alternate-normal-background; background-color: var(alternate-background);
text-color: @alternate-normal-foreground; text-color: var(foreground-colour);
} }
element.alternate.urgent { element selected.urgent {
background-color: @alternate-urgent-background; background-color: var(selected-urgent-background);
text-color: @alternate-urgent-foreground; text-color: var(selected-urgent-foreground);
} }
element.alternate.active { element selected.active {
background-color: @alternate-active-background; background-color: var(selected-active-background);
text-color: @alternate-active-foreground; text-color: var(selected-active-foreground);
} }
scrollbar { element alternate.normal {
width: 4px ; background-color: var(alternate-normal-background);
border: 0; text-color: var(alternate-normal-foreground);
handle-width: 8px ;
padding: 0;
} }
mode-switcher { element alternate.urgent {
border: 2px dash 0px 0px ; background-color: var(alternate-urgent-background);
border-color: @separatorcolor; text-color: var(alternate-urgent-foreground);
} }
button.selected { element alternate.active {
background-color: @selected-normal-background; background-color: var(alternate-active-background);
text-color: @selected-normal-foreground; text-color: var(alternate-active-foreground);
} }
inputbar { element-icon {
spacing: 0; background-color: transparent;
text-color: @normal-foreground; text-color: inherit;
padding: 1px ; size: 3ch;
cursor: inherit;
} }
case-indicator { element-text {
spacing: 0; background-color: transparent;
text-color: @normal-foreground; text-color: inherit;
highlight: inherit;
cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.0;
} }
entry { /*----- Mode Switcher -----*/
spacing: 0; mode-switcher{
text-color: @normal-foreground; enabled: true;
spacing: 10px;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 0px;
border-color: @border-colour;
background-color: transparent;
text-color: @foreground-colour;
} }
prompt { button {
spacing: 0; padding: 10px;
text-color: @normal-foreground; border: 0px solid;
border-radius: 0px;
border-color: @border-colour;
background-color: @alternate-background;
text-color: inherit;
cursor: pointer;
} }
inputbar { button selected {
children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; background-color: var(selected-normal-background);
text-color: var(selected-normal-foreground);
} }
textbox-prompt-colon { /*----- Message -----*/
expand: false; message {
str: ":"; enabled: true;
margin: 0px 0.3em 0em 0em ; margin: 0px;
text-color: @normal-foreground; padding: 0px;
border: 0px solid;
border-radius: 0px 0px 0px 0px;
border-color: @border-colour;
background-color: transparent;
text-color: @foreground-colour;
} }
textbox {
padding: 10px;
border: 0px solid;
border-radius: 0px;
border-color: @border-colour;
background-color: @alternate-background;
text-color: @foreground-colour;
vertical-align: 0.5;
horizontal-align: 0.0;
highlight: none;
placeholder-color: @foreground-colour;
blink: true;
markup: true;
}
error-message {
padding: 10px;
border: 0px solid;
border-radius: 0px;
border-color: @border-colour;
background-color: @background-colour;
text-color: @foreground-colour;
}

View File

@ -1,14 +1,18 @@
configuration { configuration {
modi: "window,run,ssh,combi"; modi: "window,run,ssh,combi,emoji,calc,drun";
font: "monospace 10"; font: "Ubuntu mono 16";
terminal: "xfce4-terminal"; terminal: "xfce4-terminal";
ssh-client: "ssh"; ssh-client: "ssh";
ssh-command: "{terminal} -e "{ssh-client} {host}""; ssh-command: "{terminal} -e "{ssh-client} {host}"";
/* ! State: 'bg', 'fg', 'bgalt', 'hlbg', 'hlfg' show-icons: true;
lines: 10; display-drun: "";
line-padding: 5; display-run: "";
*/ display-ssh: "";
display-filebrowser: "";
display-window: "";
drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]";
window-format: "{w} · {c} · {t}";
} }
@theme "~/.config/rofi/mytheme.rasi" @theme "~/.config/rofi/mytheme.rasi"

View File

@ -114,6 +114,9 @@ poppler
powertop powertop
pulseaudio-bluetooth pulseaudio-bluetooth
rofi rofi
rofi-emoji
rofi-calc
xdotool
rsync rsync
scrot scrot
scrot scrot

View File

@ -147,10 +147,12 @@ bindsym control+shift+Escape exec sysmontask # system
bindsym $mod+BackSpace exec autorandr --change undocked # reset to laptop view bindsym $mod+BackSpace exec autorandr --change undocked # reset to laptop view
# Rofi # Rofi
bindsym $mod+d exec "rofi -show run -show-icons" bindsym $mod+d exec "rofi -show drun"
bindsym $mod+Tab exec "rofi -show" bindsym $mod+Tab exec "rofi -show window"
bindsym $mod+s exec "rofi -show ssh" bindsym $mod+s exec "rofi -show ssh"
bindsym $mod+c exec "rofi -show calc"
bindsym $mod+n exec $vpnmanager bindsym $mod+n exec $vpnmanager
bindsym $mod+colon exec "rofi -show emoji"
bindsym $mod+shift+v exec "rofi -modi 'clipboard:greenclip print' -show clipboard -run-command '{cmd}'" bindsym $mod+shift+v exec "rofi -modi 'clipboard:greenclip print' -show clipboard -run-command '{cmd}'"
############################################ ############################################
@ -270,7 +272,7 @@ smart_borders on
# Smart gaps (gaps used if only more than one container on the workspace) # Smart gaps (gaps used if only more than one container on the workspace)
smart_gaps on smart_gaps on
# Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. # Press $mod+Shift+end to enter the gap mode. Choose o or i for modifying outer/inner gaps.
# Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). # Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace).
# If you also press Shift with these keys, the change will be global for all workspaces. # If you also press Shift with these keys, the change will be global for all workspaces.
set $mode_gaps Gaps: (o) outer, (i) inner set $mode_gaps Gaps: (o) outer, (i) inner

View File

@ -69,8 +69,10 @@ function copyToDir {
function install_fonts { function install_fonts {
mkdir -p ~/.fonts mkdir -p ~/.fonts
mkdir -p ~/.local/share/fonts mkdir -p ~/.local/share/fonts
mkdir -p /usr/local/share/fonts
cp -rf ./fonts/* ~/.fonts cp -rf ./fonts/* ~/.fonts
cp -rf ./fonts/* ~/.local/share/fonts cp -rf ./fonts/* ~/.local/share/fonts
cp -rf ./fonts/* /usr/local/share/fonts
} }
# install trizen, a aur helper # install trizen, a aur helper