From b18f5056b31b7fa592785a304b4d13b7c1b8b972 Mon Sep 17 00:00:00 2001 From: Ian Keane Date: Sat, 1 Aug 2026 13:15:36 -0400 Subject: [PATCH] Rofi configs --- config/nyxt/config.lisp | 3 +- config/rofi/config.rasi | 139 ++++++++++++++++++++++++++++++++++++++++ config/xinitrc | 4 ++ link.sh | 2 + 4 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 config/rofi/config.rasi diff --git a/config/nyxt/config.lisp b/config/nyxt/config.lisp index 0a51f1e..4b4c6c7 100644 --- a/config/nyxt/config.lisp +++ b/config/nyxt/config.lisp @@ -29,7 +29,8 @@ ;; Override link colors - secondary-color (#4F5B66) is too dark as a foreground (style (str:concat %slot-value% "a:link { color: #6699CC !important; }" - "a:visited { color: #C594C5 !important; }")))) + "a:visited { color: #C594C5 !important; }" + "h1, h2, h3, h4, h5, h6 { color: #CDD3DE !important; }")))) ;; Default search engine (define-configuration context-buffer diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi new file mode 100644 index 0000000..f16db12 --- /dev/null +++ b/config/rofi/config.rasi @@ -0,0 +1,139 @@ +/* Rofi config - OceanicNext theme */ + +configuration { + modi: "combi"; + combi-modi: "drun,run"; + show-icons: false; + terminal: "wezterm"; + font: "FiraCode Nerd Font Mono 13"; + drun-display-format: "{name}"; +} + +* { + bg: #1B2B34; + bg-alt: #0F1B22; + bg-sel: #2B3B44; + fg: #CDD3DE; + fg-dim: #4F5B66; + accent: #99C794; + urgent: #EC5F67; + + background-color: @bg; + text-color: @fg; + border-color: @accent; +} + +window { + background-color: @bg; + border: 1px; + border-color: @accent; + border-radius: 0px; + width: 900px; + height: 600px; + padding: 24px; +} + +mainbox { + background-color: @bg; + children: [ inputbar, listview ]; + spacing: 6px; + padding: 0px; +} + +inputbar { + background-color: @bg-alt; + padding: 8px 10px; + children: [ prompt, entry ]; +} + +prompt { + background-color: @bg-alt; + text-color: @accent; + margin: 0 6px 0 0; +} + +entry { + background-color: @bg-alt; + text-color: @fg; + placeholder: "run..."; + placeholder-color: @fg-dim; +} + +listview { + background-color: @bg; + lines: 20; + scrollbar: false; + spacing: 2px; + padding: 0px; +} + +scrollbar { + handle-width: 0px; + background-color: @bg; +} + +element { + background-color: @bg; + text-color: @fg; + padding: 6px 10px; + border-radius: 0px; +} + +element normal normal { + background-color: @bg; + text-color: @fg; +} + +element normal active { + background-color: @bg; + text-color: @fg; +} + +element normal urgent { + background-color: @bg; + text-color: @urgent; +} + +element alternate normal { + background-color: @bg; + text-color: @fg; +} + +element alternate active { + background-color: @bg; + text-color: @fg; +} + +element alternate urgent { + background-color: @bg; + text-color: @urgent; +} + +element selected normal { + background-color: @bg-sel; + text-color: @fg-dim; +} + +element selected active { + background-color: @bg-sel; + text-color: @fg-dim; +} + +element selected urgent { + background-color: @bg-sel; + text-color: @urgent; +} + +element-text { + background-color: transparent; + text-color: @fg; +} + +element selected element-text { + text-color: @accent; +} + +textbox { + background-color: @bg; + text-color: @fg; +} diff --git a/config/xinitrc b/config/xinitrc index 50a963a..df39661 100644 --- a/config/xinitrc +++ b/config/xinitrc @@ -2,4 +2,8 @@ [ -f ~/.profile ] && . ~/.profile +# Create /run/user/$UID if not present (no systemd on Slackware) +mkdir -p /run/user/$(id -u) +chmod 700 /run/user/$(id -u) + exec stumpwm diff --git a/link.sh b/link.sh index 1d4be86..bce385a 100755 --- a/link.sh +++ b/link.sh @@ -34,6 +34,8 @@ backup_and_link "$DOTFILES/config/kanata" "$HOME/.config/kanata" backup_and_link "$DOTFILES/config/nyxt" "$HOME/.config/nyxt" backup_and_link "$DOTFILES/config/yazi" "$HOME/.config/yazi" +backup_and_link "$DOTFILES/config/rofi" "$HOME/.config/rofi" + # GTK themes backup_and_link "$DOTFILES/config/gtk-2.0/gtkrc" "$HOME/.gtkrc-2.0" backup_and_link "$DOTFILES/config/gtk-3.0" "$HOME/.config/gtk-3.0"