From a91f225f0849e6d8eb46f6cd38ceb43b9b99cb79 Mon Sep 17 00:00:00 2001 From: Jason Hilder Date: Wed, 17 Jun 2026 08:16:54 +0200 Subject: [PATCH] Added polybar + rofi configs and symlinks --- config/polybar/config.ini | 133 +++++++++++++++++++++++++++++++++++ config/polybar/launch.sh | 9 +++ config/rofi/config.rasi | 142 ++++++++++++++++++++++++++++++++++++++ install.sh | 2 + 4 files changed, 286 insertions(+) create mode 100644 config/polybar/config.ini create mode 100755 config/polybar/launch.sh create mode 100644 config/rofi/config.rasi diff --git a/config/polybar/config.ini b/config/polybar/config.ini new file mode 100644 index 0000000..4af8030 --- /dev/null +++ b/config/polybar/config.ini @@ -0,0 +1,133 @@ +;========================================================== +; Polybar config - Qogir themed +; Place at ~/.config/polybar/config.ini +;========================================================== + +[colors] +background = #282A33 +background-alt = #3c3c3c +foreground = #d3dae3 +foreground-alt = #000000 +accent = #5294e2 +accent-alt = #6ba0e8 +red = #e35b5b +green = #98c379 +yellow = #e5c07b +disabled = #707880 + +[bar/main] +width = 100% +height = 35px +radius = 0 +fixed-center = true + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 0px +line-color = ${colors.accent} + +border-size = 0px +border-color = #00000000 + +padding-left = 1 +padding-right = 1 + +module-margin = 1 + +separator = "|" +separator-foreground = ${colors.disabled} + +font-0 = "JetBrainsMono Nerd Font:size=14;3" +font-1 = "JetBrainsMono Nerd Font:size=14;3" + +modules-left = xworkspaces xwindow +modules-right = filesystem pulseaudio memory cpu eth date tray + +cursor-click = pointer +cursor-scroll = ns-resize + +enable-ipc = true + +;========================================================== +; Workspaces +;========================================================== +[module/xworkspaces] +type = internal/xworkspaces + +label-active = " %name% " +label-active-background = ${colors.accent} +label-active-foreground = ${colors.background} +label-active-underline = ${colors.accent-alt} +label-active-padding = 1 + +label-occupied = " %name% " +label-occupied-foreground = #ffffff +label-occupied-padding = 1 + +label-urgent = " %name% " +label-urgent-background = ${colors.red} +label-urgent-foreground = ${colors.background} +label-urgent-padding = 1 + +label-empty = " %name% " +label-empty-foreground = ${colors.disabled} +label-empty-padding = 1 + +;========================================================== +; Focused window title - focus indicator +;========================================================== +[module/xwindow] +type = internal/xwindow +label = %title% +label-foreground = #ffffff +label-padding = 1 + +;========================================================== +; Date / time +;========================================================== +[module/date] +type = internal/date +interval = 1 + +;date = %Y-%m-%d %H:%M:%S +date = %Y-%m-%d %H:%M +date-alt = %H:%M + +label = %date% +label-foreground = ${colors.foreground} +label-padding = 1 + +;========================================================== +; Pulseaudio +;========================================================== +[module/pulseaudio] +type = internal/pulseaudio + +format-volume-prefix = "VOL " +format-volume-prefix-foreground = ${colors.accent} +format-volume = + +label-volume = %percentage%% +label-volume-padding = 1 + +label-muted = "MUTED" +label-muted-foreground = ${colors.disabled} +label-muted-padding = 1 + +;========================================================== +; Pulseaudio +;========================================================== +[module/tray] +type = internal/tray +tray-maxsize = 16 +tray-padding = 4 +tray-background = ${colors.background} + +;========================================================== +; Settings +;========================================================== +[settings] +screenchange-reload = true +pseudo-transparency = false + diff --git a/config/polybar/launch.sh b/config/polybar/launch.sh new file mode 100755 index 0000000..73e98d3 --- /dev/null +++ b/config/polybar/launch.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +# Terminate already running bar instances +pkill -x polybar + +# Wait until the processes have been shut down +while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done + +polybar main & diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi new file mode 100644 index 0000000..9eb9d8a --- /dev/null +++ b/config/rofi/config.rasi @@ -0,0 +1,142 @@ +configuration { + display-run: "# "; + display-drun: "App "; + font: "Inter 14"; + auto-select: false; + terminal: "terminator"; + run-shell-command: "{terminal} -e \"bash -c '{cmd};bash'\""; + separator-style: "solid"; + show-icons: true; + kb-row-last: ""; + kb-row-first: ""; + kb-move-front: "Home"; + kb-move-end: "End"; + kb-element-next: "Alt+Tab"; + kb-element-prev: "Alt+Shift+Tab"; + kb-row-select: "Tab"; + kb-row-down: "Control+n"; + kb-row-up: "Control+p"; + kb-clear-line: "Control+a"; + click-to-exit: false; + disable-history: false; + run,drun { + fallback-icon: "exec"; + } +} + +window { + width: 700px; + background-color: #282A33; + border: 0; + padding: 0; + children: [ vertbox ]; + orientation: vertical; + children: [ inputbar, listview ]; + spacing: 0; +} + +mode-switcher { + margin: 0; + expand: true; +} + +button { + font: "Inter 13"; + expand: false; + padding: 3px 15px 7px 20px; + text-color: #707880; + border: 2px 0 0 0; + border-color: transparent; +} + +button selected.normal { + text-color: #d3dae3; + border-color: #5294e2; + border: 2px 0 0 0; + background-color: transparent; +} + +error-message { + border: 0; + background-color: #282A33; + padding: 10px 25px; +} + +inputbar { + font: "Inter 15"; + background-color: #282A33; + border-color: #1c1c1c; + border: 0 0 1px solid 0; + padding: 10px 15px; + children: [ prompt, entry, num-filtered-rows, textbox-slash, num-rows ]; +} + +textbox-slash { + padding: 0 5px; + content: "/"; + expand: false; + text-color: #707880; +} + +entry { + placeholder: ""; + text-color: #d3dae3; +} + +prompt { + text-color: #5294e2; +} + +num-filtered-rows, +num-rows { + text-color: #707880; +} + +listview { + scrollbar: false; + expand: true; + border: 0 0 1px 0; + border-color: #1c1c1c; + padding: 0; + background-color: #282A33; + children: [element-icon, element-text]; +} + +scrollbar { + handle-color: #707880; + border-radius: 5px; +} + +toolbar { + orientation: horizontal; + children: [ mode-switcher ]; + expand: false; + padding: 0 5px 3px 0; + background-color: #282A33; +} + +element { + padding: 9px 10px; + cursor: default; +} + +element.normal.normal, +element.normal.urgent, +element.normal.active, +element.alternate.normal, +element.alternate.urgent, +element.alternate.active { + background-color: #282A33; + text-color: #d3dae3; +} + +element.selected.normal, +element.selected.urgent, +element.selected.active { + background-color: #282A33; + text-color: #d3dae3; +} + +element-icon { + padding: 0 7px 0 0; +} diff --git a/install.sh b/install.sh index ce93112..a01b977 100755 --- a/install.sh +++ b/install.sh @@ -90,6 +90,8 @@ if [ "$DO_LINKS" = true ]; then link_file "$DOTFILES_DIR/config/nvim" "$HOME/.config/nvim" link_file "$DOTFILES_DIR/config/gitu" "$HOME/.config/gitu" link_file "$DOTFILES_DIR/config/lf" "$HOME/.config/lf" + link_file "$DOTFILES_DIR/config/polybar" "$HOME/.config/polybar" + link_file "$DOTFILES_DIR/config/rofi" "$HOME/.config/rofi" echo "" echo "🧾 Summary: $CREATED symlink(s) created or fixed, $SKIPPED skipped."