From 742007eb5f622c769bb49ccf01cfb065b4221564 Mon Sep 17 00:00:00 2001 From: agryphus Date: Fri, 21 Mar 2025 14:44:21 -0400 Subject: [PATCH] More bar icons --- .../hyprland-autoname-workspaces/config.toml | 90 +++++++++++-------- .../.config/quickshell/bar/blocks/Icon.qml | 2 +- .../.config/quickshell/bar/blocks/Sound.qml | 6 +- .../quickshell/bar/blocks/Workspaces.qml | 3 +- 4 files changed, 59 insertions(+), 42 deletions(-) diff --git a/misc/.config/hyprland-autoname-workspaces/config.toml b/misc/.config/hyprland-autoname-workspaces/config.toml index 058ccbc..acae548 100644 --- a/misc/.config/hyprland-autoname-workspaces/config.toml +++ b/misc/.config/hyprland-autoname-workspaces/config.toml @@ -1,34 +1,40 @@ version = "1.1.15" -[title."(?i)foot"] -Yazi = "󰇥" - [class] DEFAULT = "{class}" -"(?i)anki" = " " -"(?i)blueman-manager-wrapped" = " " -"(?i)chromium" = " " -"(?i)discord" = "󰊴 " -"(?i)element" = " " -"(?i)emacs" = " " -"(?i)firefox" = " " -"(?i)foot" = " " -"(?i)ghidra" = " " -"(?i)gimp" = " " -"(?i)kitty" = " " -"(?i)libreoffice-draw" = "󰽉 " -"(?i)libreoffice-writer" = "󰷈 " -"(?i)mpv" = " " -"(?i)mullvad vpn" = " " -"(?i)nsxiv" = " " -"(?i)signal" = "󰭹 " -"(?i)slack" = "󰒱 " -"(?i)spotify" = " " -"(?i)st" = " " -"(?i)steam" = " " -"(?i)virtualbox" = " " -"(?i)zathura" = " " -"(?i)zen" = "󰇧 " +"Anki" = " " +"blueman-manager-wrapped" = " " +"chromium" = " " +"com.obsproject.Studio" = "󰄄 " +"com.usebottles.bottles" = " " +"discord" = "󰊴 " +"Element" = " " +"emacs" = " " +"firefox" = " " +"foot" = " " +"ghidra" = " " +"Gimp" = " " +"kitty" = " " +"libreoffice-calc" = " " +"libreoffice-draw" = "󰽉 " +"libreoffice-impress" = "󰈩 " +"libreoffice-writer" = "󰷈 " +"mpv" = " " +"mullvad vpn" = " " +"Nsxiv" = " " +"org.getmonero." = " " +"org.kde.kdenlive" = " " +"signal" = "󰭹 " +"Slack" = "󰒱 " +"spotify" = " " +"st-256color" = " " +"steam" = " " +"teams-for-linux" = "󰊻 " +"VirtualBox" = " " +"vlc" = "󱍼 " +"zathura" = " " +"zen" = "󰇧 " +"zoom" = " " [class_active] @@ -49,15 +55,21 @@ DEFAULT = "{class}" 9 = "nine" 10 = "ten" -[title_in_class."(?i)foot"] -"(?i)neovim" = "neovim" -"(?i)nvim" = "nvim" +[title_in_class."st-256color"] +"Yazi" = "󰇥 " +"NVIM" = " " +"btop" = "󰻎 " +"htop" = "󰻎 " -[title_in_class."(?i)kitty"] -"(?i)neomutt" = "neomutt" +# Sometimes windows do not set a class +[title_in_class.""] +"Steam" = " " -[title_in_class_active."(?i)firefox"] -"(?i)twitch" = "{icon}" +[title_in_class."VirtualBox Machine"] +"Tiny11" = " " + +[title_in_class."steam"] +"Halo: The Master Chief Collection" = " " [title_in_initial_class] @@ -82,11 +94,13 @@ aProgram = "^$" dedup = false dedup_inactive_fullscreen = false delim = "" -workspace = "{id}:{delim}{clients}" +workspace = "{id} {clients}" workspace_empty = "{id}" -client = "{icon}" -client_fullscreen = "[{icon}]" -client_active = "{icon}" +# client = "{icon}" +client = "{icon}" +client_fullscreen = "{icon}" +# client_active = "{icon}" +client_active = "󰀦{icon}" client_dup = "{icon}{counter_sup}" client_dup_active = "*{icon}*{delim}{icon}{counter_unfocused_sup}" client_dup_fullscreen = "[{icon}]{delim}{icon}{counter_unfocused_sup}" diff --git a/quickshell/.config/quickshell/bar/blocks/Icon.qml b/quickshell/.config/quickshell/bar/blocks/Icon.qml index 3f69856..bc62c67 100644 --- a/quickshell/.config/quickshell/bar/blocks/Icon.qml +++ b/quickshell/.config/quickshell/bar/blocks/Icon.qml @@ -52,7 +52,7 @@ BarBlock { Process { id: neofetch running: false - command: [ "sh", "-c", "hyprctl dispatch exec [floating] \ + command: [ "sh", "-c", "hyprctl dispatch exec [float] \ \"foot -W 95x22 -e zsh -c 'neofetch; while true; do; done'\"" ] stdout: SplitParser { onRead: data => console.log(`line read: ${data}`) diff --git a/quickshell/.config/quickshell/bar/blocks/Sound.qml b/quickshell/.config/quickshell/bar/blocks/Sound.qml index 0950beb..7486408 100644 --- a/quickshell/.config/quickshell/bar/blocks/Sound.qml +++ b/quickshell/.config/quickshell/bar/blocks/Sound.qml @@ -7,12 +7,14 @@ import "../" BarBlock { id: text + visible: Pipewire.ready + content: BarText { - symbolText: ` ${Math.floor(volume * 100)}%` + symbolText: ` ${volume}` } property PwNode sink: Pipewire.defaultAudioSink - property real volume: sink?.audio.volume + property string volume: Pipewire.ready ? `${Math.floor(sink.audio.volume * 100)}%` : "" PwObjectTracker { objects: [ sink ] } } diff --git a/quickshell/.config/quickshell/bar/blocks/Workspaces.qml b/quickshell/.config/quickshell/bar/blocks/Workspaces.qml index 834654b..37a2e71 100644 --- a/quickshell/.config/quickshell/bar/blocks/Workspaces.qml +++ b/quickshell/.config/quickshell/bar/blocks/Workspaces.qml @@ -258,10 +258,11 @@ RowLayout { "": "extra-virtualbox", "": "extra-scale-emacs", "": "monero", - "󰻎": "extra-scale-system-explorer-outline", + "󰻎": "extra-system-explorer-outline", "󱍼": "extra-scale-vlc", "": "com.usebottles.bottles", "": "Zoom", + "󰊻": "teams-for-linux", } }