switching to rofi while working out some problems

This commit is contained in:
2025-01-01 12:53:57 +01:00
parent fe9ede71a9
commit 2cb922f322
5 changed files with 144 additions and 151 deletions

View File

@@ -73,7 +73,7 @@
enable = true; enable = true;
}; };
ghostty = { ghostty = {
enable = false; enable = true;
}; };
gimp = { gimp = {
enable = false; enable = false;

View File

@@ -24,11 +24,11 @@ in {
# Common Keybind Variables # Common Keybind Variables
"$fileManager" = "thunar"; "$fileManager" = "thunar";
"$yazi" = "foot -e yazi"; "$yazi" = "foot -e yazi";
"$launcher" = "tuirun"; "$launcher" = "rofi -show drun";
bind = [ bind = [
"$mod, SPACE, exec, uwsm app -T $launcher" "$mod, SPACE, exec, uwsm app -- $launcher"
"$mod, R, exec, uwsm app -T $launcher" "$mod, R, exec, uwsm app -- $launcher"
"$mod, L, exec, ${toggle "nwg-bar"}" "$mod, L, exec, ${toggle "nwg-bar"}"
"$mod SHIFT, B, exec, pkill -SIGUSR2 waybar" "$mod SHIFT, B, exec, pkill -SIGUSR2 waybar"
"$mod, A, exec, pkill -SIGUSR1 waybar" "$mod, A, exec, pkill -SIGUSR1 waybar"
@@ -95,7 +95,7 @@ in {
(mkIf (host == "cnix") { (mkIf (host == "cnix") {
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
"$terminal" = "wezterm"; "$terminal" = "ghostty";
"$browser" = "zen"; "$browser" = "zen";
"$browserinc" = "zen --private-window"; "$browserinc" = "zen --private-window";
"$mod" = "SUPER"; "$mod" = "SUPER";

View File

@@ -67,6 +67,7 @@ in {
zip zip
gnutar gnutar
p7zip p7zip
unrar
]; ];
}; };
} }

View File

@@ -1,186 +1,178 @@
/* ==========================================================================
Rofi color theme
Based on the Gruvbox color scheme for Vim by morhetz
https://github.com/morhetz/gruvbox
File: gruvbox-dark-soft.rasi
Desc: Gruvbox dark (soft contrast) color theme for Rofi
Author: bardisty <b@bah.im>
Source: https://github.com/bardisty/gruvbox-rofi
Modified: Mon Feb 12 2018 06:04:37 PST -0800
========================================================================== */
* { * {
/* Theme settings */ selected-normal-foreground: #fbf1c7;
highlight: bold italic; foreground: #ebdbb2;
scrollbar: true; normal-foreground: @foreground;
alternate-normal-background: @background;
/* Gruvbox dark colors */ selected-urgent-foreground: @selected-normal-foreground;
gruvbox-dark-bg0-soft: #32302f; urgent-foreground: @selected-normal-foreground;
gruvbox-dark-bg1: #3c3836; alternate-urgent-background: @selected-normal-background;
gruvbox-dark-bg3: #665c54; active-foreground: #45403d;
gruvbox-dark-fg0: #fbf1c7; selected-active-foreground: @active-foreground;
gruvbox-dark-fg1: #ebdbb2; alternate-active-background: #32302f;
gruvbox-dark-red-dark: #cc241d; background: #32302f;
gruvbox-dark-red-light: #fb4934; alternate-normal-foreground: @foreground;
gruvbox-dark-yellow-dark: #d79921; normal-background: @background;
gruvbox-dark-yellow-light: #fabd2f; selected-normal-background: #5a524c;
gruvbox-dark-gray: #a89984; spacing: 2px;
separatorcolor: #4c7a5d;
/* Theme colors */ urgent-background: #4c3432;
background: @gruvbox-dark-bg0-soft; selected-urgent-background: @selected-normal-background;
background-color: @background; alternate-urgent-foreground: @urgent-foreground;
foreground: @gruvbox-dark-fg1; background-color: @background;
border-color: @gruvbox-dark-gray; alternate-active-foreground: @active-foreground;
separatorcolor: @border-color; active-background: @background;
scrollbar-handle: @border-color; selected-active-background: @selected-normal-background;
prompt-foreground: #fbf1c7;
normal-background: @background;
normal-foreground: @foreground;
alternate-normal-background: @gruvbox-dark-bg1;
alternate-normal-foreground: @foreground;
selected-normal-background: @gruvbox-dark-bg3;
selected-normal-foreground: @gruvbox-dark-fg0;
active-background: @gruvbox-dark-yellow-dark;
active-foreground: @background;
alternate-active-background: @active-background;
alternate-active-foreground: @active-foreground;
selected-active-background: @gruvbox-dark-yellow-light;
selected-active-foreground: @active-foreground;
urgent-background: @gruvbox-dark-red-dark;
urgent-foreground: @background;
alternate-urgent-background: @urgent-background;
alternate-urgent-foreground: @urgent-foreground;
selected-urgent-background: @gruvbox-dark-red-light;
selected-urgent-foreground: @urgent-foreground;
}
/* ==========================================================================
File: gruvbox-common.rasi
Desc: Shared rules between all gruvbox themes
Author: bardisty <b@bah.im>
Source: https://github.com/bardisty/gruvbox-rofi
Modified: Mon Feb 12 2018 06:06:47 PST -0800
========================================================================== */
window {
background-color: @background;
border: 2;
padding: 2;
} }
mainbox { #window {
border: 0; background-color: @background;
padding: 0; border-color: @separatorcolor;
border: 1px;
border-radius: 5px;
padding: 5px;
width: 25%;
} }
message { #mainbox {
border: 2px 0 0; border: 0;
border-color: @separatorcolor; padding: 2px;
padding: 1px;
} }
textbox { #message {
highlight: @highlight; border: 2px 0px 0px;
text-color: @foreground; border-color: @separatorcolor;
padding: 1px;
} }
listview { #textbox {
border: 2px solid 0 0; text-color: @foreground;
padding: 2px 0 0;
border-color: @separatorcolor;
spacing: 2px;
scrollbar: @scrollbar;
} }
element { #listview {
border: 0; fixed-height: 0;
padding: 2px; border: 1px 0px 0px ;
border-color: @separatorcolor;
spacing: 5px;
scrollbar: false;
padding: 10px 0px 0px ;
lines: 10;
} }
element.normal.normal { #element {
background-color: @normal-background; border: 0;
text-color: @normal-foreground; padding: 3px;
cursor: pointer;
spacing: 5px;
} }
element.normal.urgent { #element.normal.normal {
background-color: @urgent-background; background-color: @normal-background;
text-color: @urgent-foreground; 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;
} }
element.normal.active { #element-text {
background-color: @active-background; background-color: transparent;
text-color: @active-foreground; cursor: inherit;
highlight: inherit;
text-color: inherit;
} }
element.selected.normal { #element-icon {
background-color: @selected-normal-background; background-color: transparent;
text-color: @selected-normal-foreground; size: 1em;
cursor: inherit;
text-color: inherit;
} }
element.selected.urgent { #scrollbar {
background-color: @selected-urgent-background; width: 4px ;
text-color: @selected-urgent-foreground; border: 0;
handle-width: 8px ;
padding: 0;
handle-color: var(normal-foreground);
} }
element.selected.active { #sidebar {
background-color: @selected-active-background; border-color: @separatorcolor;
text-color: @selected-active-foreground; border: 2px dash 0 0;
} }
element.alternate.normal { #mode-switcher {
background-color: @alternate-normal-background; border: 2px 0px 0px ;
text-color: @alternate-normal-foreground; border-color: @separatorcolor;
} }
element.alternate.urgent { #button {
background-color: @alternate-urgent-background; cursor: pointer;
text-color: @alternate-urgent-foreground; spacing: 0;
text-color: @normal-foreground;
} }
element.alternate.active { #button.selected {
background-color: @alternate-active-background; background-color: @selected-normal-background;
text-color: @alternate-active-foreground; text-color: @selected-normal-foreground;
} }
scrollbar { #inputbar {
width: 4px; spacing: 5px;
border: 0; text-color: @normal-foreground;
handle-color: @scrollbar-handle; padding: 3px ;
handle-width: 8px;
padding: 0;
} }
sidebar { #case-indicator {
border: 2px 0 0; spacing: 0;
border-color: @separatorcolor; text-color: @normal-foreground;
} }
inputbar { #entry {
spacing: 0; spacing: 0;
text-color: @normal-foreground; text-color: @normal-foreground;
padding: 2px;
children: [ prompt, textbox-prompt-sep, entry, case-indicator ];
} }
case-indicator, #prompt {
entry, spacing: 0;
prompt, text-color: @prompt-foreground;
button {
spacing: 0;
text-color: @normal-foreground;
} }
button.selected { #textbox-prompt-colon {
background-color: @selected-normal-background; expand: false;
text-color: @selected-normal-foreground; str: ":";
text-color: @prompt-foreground;
} }
textbox-prompt-sep { #inputbar {
expand: false; children: [prompt,entry,case-indicator];
str: ":";
text-color: @normal-foreground;
margin: 0 0.3em 0 0;
} }

View File

@@ -85,7 +85,7 @@
enable = true; enable = true;
}; };
rofi = { rofi = {
enable = false; enable = true;
}; };
ssh = { ssh = {
enable = true; enable = true;
@@ -100,7 +100,7 @@
enable = true; enable = true;
}; };
wezterm = { wezterm = {
enable = true; enable = false;
}; };
yazi = { yazi = {
enable = true; enable = true;