dotfiles

Linux and macOS dotfiles
git clone https://github.com/michaelneuper/dotfiles.git
README | Files | Log | Refs

commit e58631b23f12293d7962f7724c83a1c95467616e
parent 62ba94fabe2a86506d420f38115a097e7da8a4ee
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date:   Sat, 26 Nov 2022 16:32:07 +0200

Completely recreate polybar

Diffstat:
M.config/polybar/colors.ini | 14--------------
M.config/polybar/config.ini | 360+++++++++++++++----------------------------------------------------------------
D.config/polybar/images/polybar-example-1.jpg | 0
D.config/polybar/images/polybar-example-2.jpg | 0
D.config/polybar/images/polybar-example-3-awesomewm.jpg | 0
M.config/polybar/launch.sh | 8+++++++-
M.config/polybar/modules.ini | 1200+++++++++++++++++++++----------------------------------------------------------
D.config/polybar/preview.ini | 310-------------------------------------------------------------------------------
M.config/polybar/scripts/get_mpris_status.sh | 12++++++------
D.config/polybar/scripts/powermenu.sh | 94-------------------------------------------------------------------------------
D.config/polybar/scripts/rofi/colors.rasi | 10----------
D.config/polybar/scripts/rofi/networkmenu.rasi | 123-------------------------------------------------------------------------------
M.config/polybar/scripts/rofi/powermenu.rasi | 241+++++++++++++++++++++++++++++++++++++++++++++++--------------------------------
A.config/polybar/scripts/rofi/shared/colors.rasi | 16++++++++++++++++
A.config/polybar/scripts/rofi/shared/fonts.rasi | 12++++++++++++
M.config/polybar/scripts/updates.sh | 4++--
R.config/polybar/bars.ini -> .config/polybar/unused/bars.ini | 0
A.config/polybar/unused/config.ini.old | 303+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.config/polybar/unused/modules.ini | 1167+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.config/polybar/unused/preview.ini | 310+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
R.config/polybar/preview.sh -> .config/polybar/unused/preview.sh | 0
R.config/polybar/scripts/check-all-updates.sh -> .config/polybar/unused/scripts/check-all-updates.sh | 0
R.config/polybar/scripts/checkupdates -> .config/polybar/unused/scripts/checkupdates | 0
R.config/polybar/scripts/get_spotify_status.sh -> .config/polybar/unused/scripts/get_spotify_status.sh | 0
R.config/polybar/scripts/launcher.sh -> .config/polybar/unused/scripts/launcher.sh | 0
R.config/polybar/scripts/polywins.sh -> .config/polybar/unused/scripts/polywins.sh | 0
A.config/polybar/unused/scripts/powermenu.sh | 94+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.config/polybar/unused/scripts/rofi/colors.rasi | 10++++++++++
R.config/polybar/scripts/rofi/confirm.rasi -> .config/polybar/unused/scripts/rofi/confirm.rasi | 0
R.config/polybar/scripts/rofi/launcher.rasi -> .config/polybar/unused/scripts/rofi/launcher.rasi | 0
R.config/polybar/scripts/rofi/message.rasi -> .config/polybar/unused/scripts/rofi/message.rasi | 0
A.config/polybar/unused/scripts/rofi/networkmenu.rasi | 123+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.config/polybar/unused/scripts/rofi/powermenu.rasi | 132+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
R.config/polybar/scripts/rofi/styles.rasi -> .config/polybar/unused/scripts/rofi/styles.rasi | 0
R.config/polybar/scripts/style-switch.sh -> .config/polybar/unused/scripts/style-switch.sh | 0
R.config/polybar/scripts/styles.sh -> .config/polybar/unused/scripts/styles.sh | 0
R.config/polybar/scripts/weather.py -> .config/polybar/unused/scripts/weather.py | 0
A.config/polybar/unused/user_modules.ini | 423+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
D.config/polybar/user_modules.ini | 406-------------------------------------------------------------------------------
39 files changed, 3137 insertions(+), 2235 deletions(-)

diff --git a/.config/polybar/colors.ini b/.config/polybar/colors.ini @@ -1,16 +1,5 @@ -;; ┌────────────────────────────────────────────────────────────┐ -;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│ -;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│ -;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│ -;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│ -;; └────────────────────────────────────────────────────────────┘ - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - [color] - ;; Use pywal.sh in scripts directory to use colors from an image/wallpaper. - ;; main colors ; background = #141C21 background = #23272E @@ -18,7 +7,6 @@ background = #23272E ; foreground = #979eab foreground = #ABB2BF sep = #3C4449 - white = #FFFFFF black = #000000 red = #EC7875 @@ -41,5 +29,3 @@ brown = #AC8476 indigo = #6C77BB gray = #9E9E9E blue-gray = #6D8895 - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini @@ -1,303 +1,79 @@ -;; ┌────────────────────────────────────────────────────────────┐ -;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█▀█░█▀▀░▀█▀░█▀▀│ -;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░█░█▀▀░░█░░█░█│ -;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀░▀░▀░░░▀▀▀░▀▀▀│ -;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│ -;; │░Modified By Raven @raven2cz░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│ -;; └────────────────────────────────────────────────────────────┘ - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -;; Global WM Settings +;========================================================== +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; https://github.com/polybar/polybar +;========================================================== [global/wm] -; Adjust the _NET_WM_STRUT_PARTIAL top value -; Used for top aligned bars -margin-bottom = 0 - -; Adjust the _NET_WM_STRUT_PARTIAL bottom value -; Used for bottom aligned bars -margin-top = 0 - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -;; File Inclusion -; include an external file, like module file, etc. - -include-file = ~/.config/polybar/bars.ini +; File inclusions include-file = ~/.config/polybar/colors.ini include-file = ~/.config/polybar/modules.ini -include-file = ~/.config/polybar/user_modules.ini - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -;; Bar Settings -[bar/main] -; Use either of the following command to list available outputs: -; If unspecified, the application will pick the first one it finds. -; $ polybar -m | cut -d ':' -f 1 -; $ xrandr -q | grep " connected" | cut -d ' ' -f1 -; monitor = - -; Use the specified monitor as a fallback if the main one is not found. -; monitor-fallback = - -; Require the monitor to be in connected state -; XRandR sometimes reports my monitor as being disconnected (when in use) -monitor-strict = false - -; Tell the Window Manager not to configure the window. -; Use this to detach the bar if your WM is locking its size/position. -override-redirect = false - -; Put the bar at the bottom of the screen -bottom = false - -; Prefer fixed center position for the `modules-center` block -; When false, the center position will be based on the size of the other blocks. -fixed-center = true - -; Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%), -; the percentage can optionally be extended with a pixel offset like so: -; 50%:-10, this will result in a width or height of 50% minus 10 pixels -width = 100%:-10px +;; Bars ;;; +[bar/root] +enable-ipc = true +font-0 = "JetbrainsMono Nerd Font:size=10.5;3" +font-1 = "JetbrainsMono Nerd Font:size=11.5:style=Bold;3" +font-2 = "feather:size=12;3" +font-3 = "Noto Sans CJK JP:size=11:style=Bold;3" +font-4 = "Iosevka Nerd Font:size=10;3" +padding = 2 +border-size = 0 +border-color = ${color.foreground} height = 30 - -; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) -; the percentage can optionally be extended with a pixel offset like so: -; 50%:-10, this will result in an offset in the x or y direction -; of 50% minus 10 pixels -offset-x = 5px -offset-y = 5px - -; Background ARGB color (e.g. #f00, #ff992a, #ddff1023) +;radius = 20 +;Works very well with a radius like this! Put it on every bar. background = ${color.background} - -; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023) foreground = ${color.foreground} - -; Background gradient (vertical steps) -; background-[0-9]+ = #aarrggbb -;;background-0 = - -; Value used for drawing rounded corners -; Note: This shouldn't be used together with border-size because the border -; doesn't get rounded -; Individual top/bottom values can be defined using: -; radius-{top,bottom} -border-size = 0.0 -radius = 0.0 -radius-top = 0.0 -radius-bottom = 0.0 - -; Under-/overline pixel size and argb color -; Individual values can be defined using: -; {overline,underline}-size -; {overline,underline}-color -line-size = 2 -line-color = ${color.foreground} - -; Values applied to all borders -; Individual side values can be defined using: -; border-{left,top,right,bottom}-size -; border-{left,top,right,bottom}-color -; The top and bottom borders are added to the bar height, so the effective -; window height is: -; height + border-top-size + border-bottom-size -; Meanwhile the effective window width is defined entirely by the width key and -; the border is placed withing this area. So you effectively only have the -; following horizontal space on the bar: -; width - border-right-size - border-left-size -border-bottom-size = 0.0 -border-bottom-color = ${color.blue} - -; Number of spaces to add at the beginning/end of the bar -; Individual side values can be defined using: -; padding-{left,right} -padding = 2 - -; Number of spaces to add before/after each module -; Individual side values can be defined using: -; module-margin-{left,right} -module-margin-left = 1 -module-margin-right = 1 - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -; Fonts are defined using <font-name>;<vertical-offset> -; Font names are specified using a fontconfig pattern. -; font-0 = NotoSans-Regular:size=8;2 -; font-1 = MaterialIcons:size=10 -; font-2 = Termsynu:size=8;-1 -; font-3 = FontAwesome:size=10 -; See the Fonts wiki page for more details - -; font-0 = "Iosevka Nerd Font:size=10;4" -; font-1 = "Iosevka Nerd Font:size=10;3" -; font-0 = "SF Mono Ligatues:size=10.5;3" -font-0 = "scientifica:size=12;3" -; font-0 = "JetbrainsMono Nerd Font:size=10.5;3" -font-1 = "feather:size=12;3" -font-2 = "Apple Color Emoji:size=11;3" -font-3 = "Iosevka Nerd Font:size=12;4" -font-4 = "Noto Sans Mono:size=12;3" - -; Modules are added to one of the available blocks -; modules-left = cpu ram -; modules-center = xwindow xbacklight -; modules-right = ipc clock - -modules-left = arch sep workspaces sep title sep -modules-center = mpris-play-pause mpris -modules-right = sep alsa sep cpu memory filesystem uptime sep date sep powermenu - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -; The separator will be inserted between the output of each module -separator = - -; Opacity value between 0.0 and 1.0 used on fade in/out -dim-value = 1.0 - -; Value to be used to set the WM_NAME atom -; If the value is empty or undefined, the atom value -; will be created from the following template: polybar-[BAR]_[MONITOR] -; NOTE: The placeholders are not available for custom values -wm-name = - -; Locale used to localize various module data (e.g. date) -; Expects a valid libc locale, for example: sv_SE.UTF-8 -locale = - -; Position of the system tray window -; If empty or undefined, tray support will be disabled -; NOTE: A center aligned tray will cover center aligned modules -; -; Available positions: -; left -; center -; right -; none -tray-position = center - -; If true, the bar will not shift its -; contents when the tray changes -tray-detached = false - -; Tray icon max size -tray-maxsize = 16 - -; Background color for the tray container -; ARGB color (e.g. #f00, #ff992a, #ddff1023) -; By default the tray container will use the bar -; background color. -tray-background = ${color.background} - -; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) -tray-offset-x = 0 -tray-offset-y = 0 - -; Pad the sides of each tray icon -tray-padding = 5 - -; Scale factor for tray clients -tray-scale = 1.0 - -; Restack the bar window and put it above the -; selected window manager's root -; -; Fixes the issue where the bar is being drawn -; on top of fullscreen window's -; -; Currently supported WM's: -; bspwm -; i3 (requires: `override-redirect = true`) -wm-restack = i3foreground - -; Set a DPI values used when rendering text -; This only affects scalable fonts -; dpi = - -; Enable support for inter-process messaging -; See the Messaging wiki page for more details. +override-redirect=false +offset-y = 10 +wm-restack = bspwm +separator = " " + + +[bar/workspaces] +inherit = bar/root +width = 20.5% +offset-x = 0.5% +line-size = 1 +modules-left = arch sep workspaces +scroll-up = bspwm-desknext +scroll-down = bspwm-deskprev + +[bar/win-title] +inherit = bar/root enable-ipc = true +width = 28.25% +offset-x = 21.5% +modules-left = title -; Fallback click handlers that will be called if -; there's no matching module handler found. -click-left = -click-middle = -click-right = -scroll-up = -scroll-down = -double-click-left = -double-click-middle = -double-click-right = - -; Requires polybar to be built with xcursor support (xcb-util-cursor) -; Possible values are: -; - default : The default pointer as before, can also be an empty string (default) -; - pointer : Typically in the form of a hand -; - ns-resize : Up and down arrows, can be used to indicate scrolling -cursor-click = -cursor-scroll = - -;; WM Workspace Specific - -; bspwm -;;scroll-up = bspwm-desknext -;;scroll-down = bspwm-deskprev -;;scroll-up = bspc desktop -f prev.local -;;scroll-down = bspc desktop -f next.local - -;i3 -;;scroll-up = i3wm-wsnext -;;scroll-down = i3wm-wsprev -;;scroll-up = i3-msg workspace next_on_output -;;scroll-down = i3-msg workspace prev_on_output - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -;; Application Settings - -[settings] -; The throttle settings lets the eventloop swallow up til X events -; if they happen within Y millisecond after first event was received. -; This is done to prevent flood of update event. -; -; For example if 5 modules emit an update event at the same time, we really -; just care about the last one. But if we wait too long for events to swallow -; the bar would appear sluggish so we continue if timeout -; expires or limit is reached. -throttle-output = 5 -throttle-output-for = 10 - -; Time in milliseconds that the input handler will wait between processing events -;throttle-input-for = 30 - -; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events -screenchange-reload = false - -; Compositing operators -; @see: https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t -compositing-background = source -compositing-foreground = over -compositing-overline = over -compositing-underline = over -compositing-border = over - -; Define fallback values used by all module formats -;format-foreground = -;format-background = -;format-underline = -;format-overline = -;format-spacing = -;format-padding = -;format-margin = -;format-offset = - -; Enables pseudo-transparency for the bar -; If set to true the bar can be transparent without a compositor. -pseudo-transparency = true +[bar/music] +inherit = bar/root +enable-ipc = true +width = 26.75% +offset-x = 50.25% +modules-left = alsa +modules-center = mpris mpris-play-pause + +[bar/info] +inherit = bar/root +width = 14.5% +offset-x = 77.5% +modules-center = cpu memory filesystem updates + +[bar/time] +inherit = bar/root +width = 4.4% +offset-x = 92.5% +modules-center = time + +[bar/power] +inherit = bar/root +width = 2% +offset-x = 97.5% +modules-center = powermenu -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ diff --git a/.config/polybar/images/polybar-example-1.jpg b/.config/polybar/images/polybar-example-1.jpg Binary files differ. diff --git a/.config/polybar/images/polybar-example-2.jpg b/.config/polybar/images/polybar-example-2.jpg Binary files differ. diff --git a/.config/polybar/images/polybar-example-3-awesomewm.jpg b/.config/polybar/images/polybar-example-3-awesomewm.jpg Binary files differ. diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh @@ -10,7 +10,13 @@ killall -q polybar while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done # Launch the bar -polybar -q main -c "$DIR"/config.ini & +# polybar -q main -c "$DIR"/config.ini & +polybar -q workspaces & +polybar -q win-title & +polybar -q music & +polybar -q info & +polybar -q time & +polybar -q power & # IPC settings and test ln -sf /tmp/polybar_mqueue.$! /tmp/ipc-main diff --git a/.config/polybar/modules.ini b/.config/polybar/modules.ini @@ -1,240 +1,84 @@ -;; ┌────────────────────────────────────────────────────────────────┐ -;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▄█░█▀█░█▀▄░█░█░█░░░█▀▀░█▀▀│ -;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░█░█░█░█░█░█░█░█░░░█▀▀░▀▀█│ -;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀░▀░▀▀▀░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀│ -;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│ -;; │░Modified By Raven @raven2cz░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│ -;; └────────────────────────────────────────────────────────────────┘ - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/alsa] -type = internal/alsa - -; Soundcard to be used -; Usually in the format hw:# where # is the card number -; You can find the different card numbers in `/proc/asound/cards` -master-soundcard = default -speaker-soundcard = default -headphone-soundcard = default - -; Name of the master, speaker and headphone mixers -; Use the following command to list available mixer controls: -; $ amixer scontrols | sed -nr "s/.*'([[:alnum:]]+)'.*/\1/p" -; If master, speaker or headphone-soundcard isn't the default, -; use `amixer -c # scontrols` instead where # is the number -; of the master, speaker or headphone soundcard respectively -; -; Default: Master -master-mixer = Master - -; Optionally define speaker and headphone mixers -; Default: none -;;speaker-mixer = Speaker -; Default: none -;;headphone-mixer = Headphone - -; NOTE: This is required if headphone_mixer is defined -; Use the following command to list available device controls -; $ amixer controls | sed -r "/CARD/\!d; s/.*=([0-9]+).*name='([^']+)'.*/printf '%3.0f: %s\n' '\1' '\2'/e" | sort -; You may also need to use `amixer -c # controls` as above for the mixer names -; Default: none -;;headphone-id = 9 - -; Use volume mapping (similar to amixer -M and alsamixer), where the increase in volume is linear to the ear -; Default: false -;;mapped = true - -; Interval for volume increase/decrease (in percent points) -; Default: 5 +;; Modules by me https://github.com/michaelneuper +[module/arch] +type = custom/script +exec = echo " " +format-foreground = ${color.blue} +format-font = 2 + +[module/time] +type = internal/date +interval = 1.0 +time = %H:%M +time-alt = %a %d +format = <label> +format-foreground = ${color.white} +label = %time% +label-font = 2 +click-right = "echo $(date +%d/%m/%y)" + +[module/time-date] +type = custom/script +exec = "date +%H:%M" interval = 5 - -; Available tags: -; <label-volume> (default) -; <ramp-volume> -; <bar-volume> -format-volume = <ramp-volume> <label-volume> - -; Available tags: -; <label-muted> (default) -; <ramp-volume> -; <bar-volume> -format-muted = <label-muted> -format-muted-prefix =  -format-muted-prefix-foreground = ${color.red} - -; Available tokens: -; %percentage% (default) -label-volume = %percentage%% -label-volume-foreground = ${color.foreground} - -; Available tokens: -; %percentage% (default -label-muted = " Muted" -label-muted-foreground = ${color.sep} - -; Only applies if <ramp-volume> is used -ramp-volume-0 =  -ramp-volume-1 =  -ramp-volume-2 =  -ramp-volume-foreground = ${color.blue} - -; If defined, it will replace <ramp-volume> when -; headphones are plugged in to `headphone_control_numid` -; If undefined, <ramp-volume> will be used for both -; Only applies if <ramp-volume> is used -ramp-headphones-0 =  -ramp-headphones-background = ${color.blue} - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/backlight] -;type = internal/xbacklight -type = internal/backlight - -; Use the following command to list available cards: -; $ ls -1 /sys/class/backlight/ -;card = intel_backlight -card = amdgpu_bl0 - -; Available tags: -; <label> (default) -; <ramp> -; <bar> -format = <ramp> <label> - -; Available tokens: -; %percentage% (default) -label = %percentage%% - -; Only applies if <ramp> is used -ramp-0 =  -ramp-1 =  -ramp-2 =  -ramp-3 =  -ramp-4 =  -ramp-foreground = ${color.lime} - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/battery] -type = internal/battery - -; This is useful in case the battery never reports 100% charge -full-at = 99 - -; Use the following command to list batteries and adapters: -; $ ls -1 /sys/class/power_supply/ -battery = BAT1 -adapter = ACAD - -; If an inotify event haven't been reported in this many -; seconds, manually poll for new values. -; -; Needed as a fallback for systems that don't report events -; on sysfs/procfs. -; -; Disable polling by setting the interval to 0. +; format-foreground = ${color.white} +; format-font = 2 +click-left = echo "$(date '+%a %d')" +; click-right = "bash date +%d/%m/%y" +; exec = date '+%d/%m/%Y %H:%M:%S' +; click-left = thunderbird & +label = "%output%" + +[module/powermenu] +type = custom/script +exec = echo "" +click-left = "bash ~/.config/rofi/scripts/powermenu.sh" +format-foreground = ${color.red} + +[module/bspwm-layout] +type = internal/bspwm +format = <label-mode> +; The following labels will be used to indicate the layout/mode +; for the focused workspace. Requires <label-mode> ; -; Default: 5 -poll-interval = 2 - -; see "man date" for details on how to format the time string -; NOTE: if you want to use syntax tags here you need to use %%{...} -; Default: %H:%M:%S -time-format = %H:%M - -; Available tags: -; <label-charging> (default) -; <bar-capacity> -; <ramp-capacity> -; <animation-charging> -format-charging = <label-charging> -format-charging-prefix = "" -format-charging-prefix-foreground = ${color.green} - -; Available tags: -; <label-discharging> (default) -; <bar-capacity> -; <ramp-capacity> -; <animation-discharging> -format-discharging = <label-discharging> -format-discharging-prefix = "" -format-discharging-prefix-foreground = ${color.pink} - -; Available tags: -; <label-full> (default) -; <bar-capacity> -; <ramp-capacity> -format-full = <label-full> -format-full-prefix =  -format-full-prefix-foreground = ${color.red} - -; Available tokens: -; %percentage% (default) -; %time% -; %consumption% (shows current charge rate in watts) -label-charging = " %percentage%%" - ; Available tokens: -; %percentage% (default) -; %time% -; %consumption% (shows current discharge rate in watts) -label-discharging = " %percentage%%" - -; Available tokens: -; %percentage% (default) -label-full = " Full" - -; Only applies if <ramp-capacity> is used -ramp-capacity-0 = -ramp-capacity-1 = -ramp-capacity-2 = -ramp-capacity-3 = -ramp-capacity-4 = - -; Only applies if <bar-capacity> is used -;bar-capacity-width = 10 - -; Only applies if <animation-charging> is used -animation-charging-0 = -animation-charging-1 = - -; Framerate in milliseconds -animation-charging-framerate = 750 - -; Only applies if <animation-discharging> is used -;;animation-discharging-0 = ${battery.anim0} -;;animation-discharging-1 = ${battery.anim1} - -; Framerate in milliseconds -;animation-discharging-framerate = 500 - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -;;[module/bspwm] -;;type = internal/bspwm +; None +label-monocle =  +label-tiled =  +label-fullscreen =  +label-floating =  +label-pseudotiled = P +label-locked =  +label-locked-foreground = #bd2c40 +label-sticky =  +label-sticky-foreground = #fba922 +label-private =  +label-private-foreground = #bd2c40 + +;; Modules by @adi1090x and @raven2cz +; Modified by me +;[module/bspwm] +; type = internal/bspwm ; Only show workspaces defined on the same output as the bar ; NOTE: The bspwm and XRandR monitor names must match, which they do by default. ; Default: true -;;pin-workspaces = true +; pin-workspaces = true ; Output mode flags after focused state label ; Default: false -;;inline-mode = false +; inline-mode = false ; Create click handler used to focus workspace ; Default: true -;;enable-click = false +; enable-click = false ; Create scroll handlers used to cycle workspaces ; Default: true -;;enable-scroll = false +; enable-scroll = false ; Set the scroll cycle direction ; Default: true -;;reverse-scroll = false +; reverse-scroll = false ; Use fuzzy (partial) matching on labels when assigning ; icons to workspaces @@ -291,7 +135,7 @@ animation-charging-framerate = 750 ; %index% ; Default: %icon% %name% ;;label-occupied = %icon% -;;label-occupied-underline = #555555 +;;label-occupied-underline = #55555 ; Available tokens: ; %name% @@ -333,73 +177,90 @@ animation-charging-framerate = 750 ;;label-separator-padding = 2 ;;label-separator-foreground = #ffb52a -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/cpu] -type = internal/cpu - -; Seconds to sleep between updates -; Default: 1 -interval = 1 - -; Available tags: -; <label> (default) -; <bar-load> -; <ramp-load> -; <ramp-coreload> -;;format = <label> <ramp-coreload> -format = <label> -format-prefix =  -format-prefix-foreground = ${color.green} - -; Available tokens: -; %percentage% (default) - total cpu load averaged over all cores -; %percentage-sum% - Cumulative load on all cores -; %percentage-cores% - load percentage for each core -; %percentage-core[1-9]% - load percentage for specific core -label = " %percentage%%" +[module/workspaces] +type = internal/xworkspaces -; Spacing between individual per-core ramps -;;ramp-coreload-spacing = 1 -;;ramp-coreload-0 = ${cpu.load0} -;;ramp-coreload-1 = ${cpu.load1} +; Only show workspaces defined on the same output as the bar +; +; Useful if you want to show monitor specific workspaces +; on different bars +; +; Default: false +pin-workspaces = true -;;ramp-load-0 = ${cpu.load0} -;;ramp-load-1 = ${cpu.load1} +; Create click handler used to focus desktop +; Default: true +enable-click = true -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ +; Create scroll handlers used to cycle desktops +; Default: true +enable-scroll = true -[module/date] -type = internal/date +; icon-[0-9]+ = <desktop-name>;<icon> +; NOTE: The desktop name needs to match the name configured by the WM +; You can get a list of the defined desktops using: +; $ xprop -root _NET_DESKTOP_NAMES +icon-0 = 1;一 +icon-1 = 2;二 +icon-2 = 3;三 +icon-3 = 4;四 +icon-4 = 5;五 +icon-5 = 6;六 +icon-6 = 7;七 +icon-7 = 8;八 +icon-8 = 9;九 +icon-9 = 10;十 +icon-default =  -; Seconds to sleep between updates -interval = 1.0 +; Available tags: +; <label-monitor> +; <label-state> - gets replaced with <label-(active|urgent|occupied|empty)> +; Default: <label-state> +format = <label-state> -; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string -; NOTE: if you want to use syntax tags here you need to use %%{...} -date = %A, %d %B +; Available tokens: +; %name% +; Default: %name% +label-monitor = %name% -; Optional time format -time = %k:%M +; Available tokens: +; %name% +; %icon% +; %index% +; Default: %icon% %name% +label-active = [%icon%] +label-active-foreground = ${color.purple} +; label-active-underline = ${color.purple} -; if `date-alt` or `time-alt` is defined, clicking -; the module will toggle between formats -date-alt = %A, %d %B %Y -time-alt = %I:%M:%S %p +; Available tokens: +; %name% +; %icon% +; %index% +; Default: %icon% %name% +label-occupied = %icon% +label-occupied-foreground = ${color.cyan} -; Available tags: -; <label> (default) -format = <label> -format-prefix = " " -format-prefix-foreground = ${color.white} +; Available tokens: +; %name% +; %icon% +; %index% +; Default: %icon% %name% +label-urgent = %icon% +label-urgent-foreground = ${color.red} +label-urgent-underline = ${color.red} ; Available tokens: -; %date% -; %time% -; Default: %date% -label = %date% at %{F#4DD0E1}%time%%{F-} -label-font = 0 -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ +; %name% +; %icon% +; %index% +; Default: %icon% %name% +label-empty = %icon% +label-empty-foreground = ${color.foreground} + +label-active-padding = 1 +label-urgent-padding = 1 +label-occupied-padding = 1 +label-empty-padding = 1 [module/filesystem] type = internal/fs @@ -411,11 +272,11 @@ mount-0 = / ; Seconds to sleep between updates ; Default: 30 -interval = 30 +interval = 300 ; Display fixed precision values ; Default: false -fixed-values = true +fixed-values = false ; Spacing between entries ; Default: 2 @@ -428,7 +289,7 @@ fixed-values = true ; <ramp-capacity> format-mounted = <label-mounted> format-mounted-prefix =  -format-mounted-prefix-foreground = ${color.orange} +format-mounted-prefix-foreground = ${color.purple} ; Available tags: ; <label-unmounted> (default) @@ -453,170 +314,28 @@ label-mounted = " %free%" ; Default: %mountpoint% is not mounted label-unmounted = " %mountpoint%: NA" -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -;;[module/github] -;;type = internal/github - -; Accessing an access token stored in file -;;token = ${file:/path/to/file/containing/github/access.token} +click-left = "alacritty -e ncdu" -; Accessing an access token stored in an environment variable -;;token = ${env:GITHUB_ACCESS_TOKEN} - -; Whether empty notifications should be displayed or not -;;empty-notifications = false +[module/memory] +type = internal/memory -; Number of seconds in between requests -;;interval = 10 +; Seconds to sleep between updates +; Default: 1 +interval = 1 ; Available tags: ; <label> (default) -;;format = <label> -;;format-prefix =  - -; Available tokens: -; %notifications% (default) -; Default: Notifications: %notifications% -;;label = %notifications% - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -;;[module/i3] -;;type = internal/i3 - -; Only show workspaces defined on the same output as the bar -; -; Useful if you want to show monitor specific workspaces -; on different bars -; -; Default: false -;;pin-workspaces = true - -; This will split the workspace name on ':' -; Default: false -;;strip-wsnumbers = true - -; Sort the workspaces by index instead of the default -; sorting that groups the workspaces by output -; Default: false -;;index-sort = true - -; Create click handler used to focus workspace -; Default: true -;;enable-click = false - -; Create scroll handlers used to cycle workspaces -; Default: true -;;enable-scroll = false - -; Wrap around when reaching the first/last workspace -; Default: true -;;wrapping-scroll = false - -; Set the scroll cycle direction -; Default: true -;;reverse-scroll = false - -; Use fuzzy (partial) matching on labels when assigning -; icons to workspaces -; Example: code;♚ will apply the icon to all workspaces -; containing 'code' in the label -; Default: false -;;fuzzy-match = true - -; ws-icon-[0-9]+ = label;icon -; NOTE: The label needs to match the name of the i3 workspace -;;ws-icon-0 = 1;♚ -;;ws-icon-1 = 2;♛ -;;ws-icon-2 = 3;♜ -;;ws-icon-3 = 4;♝ -;;ws-icon-4 = 5;♞ -;;ws-icon-default = ♟ -; NOTE: You cannot skip icons, e.g. to get a ws-icon-6 -; you must also define a ws-icon-5. - -; Available tags: -; <label-state> (default) - gets replaced with <label-(focused|unfocused|visible|urgent)> -; <label-mode> (default) -;;format = <label-state> <label-mode> - -; Available tokens: -; %mode% -; Default: %mode% -;;label-mode = %mode% -;;label-mode-padding = 2 -;;label-mode-background = #e60053 - -; Available tokens: -; %name% -; %icon% -; %index% -; %output% -; Default: %icon% %name% -;;label-focused = %index% -;;label-focused-foreground = #ffffff -;;label-focused-background = #3f3f3f -;;label-focused-underline = #fba922 -;;label-focused-padding = 4 - -; Available tokens: -; %name% -; %icon% -; %index% -; %output% -; Default: %icon% %name% -;;label-unfocused = %index% -;;label-unfocused-padding = 4 - -; Available tokens: -; %name% -; %icon% -; %index% -; %output% -; Default: %icon% %name% -;;label-visible = %index% -;;label-visible-underline = #555555 -;;label-visible-padding = 4 - -; Available tokens: -; %name% -; %icon% -; %index% -; %output% -; Default: %icon% %name% -;;label-urgent = %index% -;;label-urgent-foreground = #000000 -;;label-urgent-background = #bd2c40 -;;label-urgent-padding = 4 - -; Separator in between workspaces -;;label-separator = | -;;label-separator-padding = 2 -;;label-separator-foreground = #ffb52a - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/memory] -type = internal/memory - -; Seconds to sleep between updates -; Default: 1 -interval = 1 - -; Available tags: -; <label> (default) -; <bar-used> -; <bar-free> -; <ramp-used> -; <ramp-free> -; <bar-swap-used> -; <bar-swap-free> -; <ramp-swap-used> -; <ramp-swap-free> -format = <label> -format-prefix =  -format-prefix-foreground = ${color.blue} +; <bar-used> +; <bar-free> +; <ramp-used> +; <ramp-free> +; <bar-swap-used> +; <bar-swap-free> +; <ramp-swap-used> +; <ramp-swap-free> +format = <label> +format-prefix =  +format-prefix-foreground = ${color.green} ; Available tokens: ; %percentage_used% (default) @@ -647,212 +366,201 @@ label = " %mb_used%" ;;ramp-free-0 = ${memory.free0} ;;ramp-free-1 = ${memory.free1} ;;ramp-free-2 = ${memory.free2} +click-left = "alacritty -e htop" -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ +[module/title] +type = internal/xwindow +format = <label> +format-prefix = +format-foreground = ${color.foreground} +label = "%title%" +label-maxlen = 60 +label-empty = "Arch Linux" -[module/mpd] -type = internal/mpd +[module/updates] +type = custom/script -; Host where mpd is running (either ip or domain name) -; Can also be the full path to a unix socket where mpd is running. -;;host = 127.0.0.1 -;;port = 6600 -;;password = mysecretpassword +; Available tokens: +; %counter% +; Command to be executed (using "/usr/bin/env sh -c [command]") +exec = ~/.config/polybar/scripts/updates.sh -; Seconds to sleep between progressbar/song timer sync -; Default: 1 -interval = 1 +; Conditional command that, if defined, needs to exit successfully +; before the main exec command is invoked. +; Default: "" +;;exec-if = "" -; Available tags: -; <label-song> (default) -; <label-time> -; <bar-progress> -; <toggle> - gets replaced with <icon-(pause|play)> -; <toggle-stop> - gets replaced with <icon-(stop|play)> -; <icon-random> -; <icon-repeat> -; <icon-repeatone> (deprecated) -; <icon-single> - Toggle playing only a single song. Replaces <icon-repeatone> -; <icon-consume> -; <icon-prev> -; <icon-stop> -; <icon-play> -; <icon-pause> -; <icon-next> -; <icon-seekb> -; <icon-seekf> -format-online = <label-song> <icon-prev> <toggle> <icon-next> -format-online-prefix =  -format-online-prefix-foreground = ${color.green} - -;format-playing = ${self.format-online} -;format-paused = ${self.format-online} -;format-stopped = ${self.format-online} +; Will the script output continous content? +; Default: false +tail = true + +; Seconds to sleep between updates +; Default: 2 (0 if `tail = true`) +interval = 5 ; Available tags: -; <label-offline> -format-offline = <label-offline> -format-offline-prefix =  -format-offline-prefix-foreground = ${color.red} +; <output> - deprecated +; <label> (default) +format = <label> +format-prefix =  +format-prefix-foreground = ${color.yellow} ; Available tokens: -; %artist% -; %album-artist% -; %album% -; %date% -; %title% -; Default: %artist% - %title% -label-song = " %artist% - %title%" -label-song-maxlen = 25 -label-song-ellipsis = true +; %output% +; Default: %output% +label = " %output%" ; Available tokens: -; %elapsed% -; %total% -; Default: %elapsed% / %total% -label-time = %elapsed% / %total% -label-time-background = ${color.background-alt} -label-time-padding = 1 +; %counter% +; %pid% +; +; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c [command]" +click-left = "pamac-manager --updates" +click-right = "plasma-discover" +; click-right = exo-open --launch TerminalEmulator & +;;double-click-left = echo double left %counter% +;;double-click-middle = echo double middle %counter% +;;double-click-right = echo double right %counter% ; Available tokens: -; None -label-offline = " Offline" - -; Only applies if <icon-X> is used -icon-play =  -icon-play-foreground = ${color.cyan} -icon-pause =  -icon-pause-foreground = ${color.cyan} -icon-stop =  -icon-stop-foreground = ${color.red} -icon-next =  -icon-next-foreground = ${color.cyan} -icon-prev =  -icon-prev-foreground = ${color.cyan} -icon-seekf = -icon-seekb = -icon-random = -icon-repeat = -icon-repeatone = -icon-single = -icon-consume = - -; Used to display the state of random/repeat/repeatone/single -; Only applies if <icon-[random|repeat|repeatone|single]> is used -toggle-on-foreground = ${color.primary} -toggle-off-foreground = ${color.red} - -; Only applies if <bar-progress> is used -;;bar-progress-width = 45 -;;bar-progress-indicator = | -;;bar-progress-fill = ─ -;;bar-progress-empty = ─ - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -; If you use both a wired and a wireless network, just add 2 module definitions. For example -[module/wired-network] -type = internal/network -;interface = enp38s0 -interface = eth0 - -[module/wireless-network] -type = internal/network -interface = wlp3s0 - -; Normal Module -[module/network] -type = internal/network -interface = wlan0 +; %counter% +; %pid% +; +; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c [command]" +;;scroll-up = echo scroll up %counter% +;;scroll-down = echo scroll down %counter% + +[module/cpu] +type = internal/cpu ; Seconds to sleep between updates ; Default: 1 -interval = 1.0 +interval = 1 + +; Available tags: +; <label> (default) +; <bar-load> +; <ramp-load> +; <ramp-coreload> +;;format = <label> <ramp-coreload> +format = <label> +format-prefix =  +format-prefix-foreground = ${color.blue} -; Test connectivity every Nth update -; A value of 0 disables the feature -; NOTE: Experimental (needs more testing) -; Default: 0 -;ping-interval = 3 +; Available tokens: +; %percentage% (default) - total cpu load averaged over all cores +; %percentage-sum% - Cumulative load on all cores +; %percentage-cores% - load percentage for each core +; %percentage-core[1-9]% - load percentage for specific core +label = " %percentage%%" -; @deprecated: Define min width using token specifiers (%downspeed:min% and %upspeed:min%) -; Minimum output width of upload/download rate -; Default: 3 -;;udspeed-minwidth = 5 +; Spacing between individual per-core ramps +;;ramp-coreload-spacing = 1 +;;ramp-coreload-0 = ${cpu.load0} +;;ramp-coreload-1 = ${cpu.load1} -; Accumulate values from all interfaces -; when querying for up/downspeed rate -; Default: false -accumulate-stats = true +;;ramp-load-0 = ${cpu.load0} +;;ramp-load-1 = ${cpu.load1} +click-left = alacritty -e htop & + +[module/sep] +type = custom/text +content = | +content-foreground = ${color.sep} + +[module/mpris-play-pause] +type = custom/ipc +hook-0 = echo "%{F${foreground}}  %{F-}" +hook-1 = echo "%{F${foreground}}  %{F-}" +initial = 2 +click-left = playerctl play-pause +scroll-up = playerctl previous +scroll-down = playerctl next + +[module/mpris] +type = custom/script +tail = true +format = <label> +exec = ~/.config/polybar/scripts/scroll_mpris_status.sh +click-left = playerctl play-pause +scroll-up = playerctl previous +scroll-down = playerctl next + +[module/alsa] +type = internal/alsa +master-soundcard = default +speaker-soundcard = default +headphone-soundcard = default +; Name of the master, speaker and headphone mixers +; Use the following command to list available mixer controls: +; $ amixer scontrols | sed -nr "s/.*'([[:alnum:]]+)'.*/\1/p" +; If master, speaker or headphone-soundcard isn't the default, +; use `amixer -c # scontrols` instead where # is the number +; of the master, speaker or headphone soundcard respectively +; +; Default: Master +master-mixer = Master + +; Optionally define speaker and headphone mixers +; Default: none +;;speaker-mixer = Speaker +; Default: none +;;headphone-mixer = Headphone + +; NOTE: This is required if headphone_mixer is defined +; Use the following command to list available device controls +; $ amixer controls | sed -r "/CARD/\!d; s/.*=([0-9]+).*name='([^']+)'.*/printf '%3.0f: %s\n' '\1' '\2'/e" | sort +; You may also need to use `amixer -c # controls` as above for the mixer names +; Default: none +;;headphone-id = 9 -; Consider an `UNKNOWN` interface state as up. -; Some devices have an unknown state, even when they're running +; Use volume mapping (similar to amixer -M and alsamixer), where the increase in volume is linear to the ear ; Default: false -unknown-as-up = true +;;mapped = true -; Available tags: -; <label-connected> (default) -; <ramp-signal> -format-connected = <label-connected> -format-connected-prefix =  -format-connected-prefix-foreground = ${color.purple} +; Interval for volume increase/decrease (in percent points) +; Default: 5 +interval = 5 ; Available tags: -; <label-disconnected> (default) -format-disconnected = <label-disconnected> -format-disconnected-prefix =  -format-disconnected-prefix-foreground = ${color.orange} +; <label-volume> (default) +; <ramp-volume> +; <bar-volume> +format-volume = <ramp-volume> <label-volume> ; Available tags: -; <label-connected> (default) -; <label-packetloss> -; <animation-packetloss> -;;format-packetloss = <animation-packetloss> <label-connected> +; <label-muted> (default) +; <ramp-volume> +; <bar-volume> +format-muted = <label-muted> +format-muted-prefix =  +format-muted-prefix-foreground = ${color.red} ; Available tokens: -; %ifname% [wireless+wired] -; %local_ip% [wireless+wired] -; %local_ip6% [wireless+wired] -; %essid% [wireless] -; %signal% [wireless] -; %upspeed% [wireless+wired] -; %downspeed% [wireless+wired] -; %linkspeed% [wired] -; Default: %ifname% %local_ip% -label-connected = "%{A1:networkmanager_dmenu &:} %essid% %{F#6C77BB}%{F-} %downspeed%%{A}" +; %percentage% (default) +label-volume = %percentage%% +label-volume-foreground = ${color.foreground} ; Available tokens: -; %ifname% [wireless+wired] -; Default: (none) -label-disconnected = "%{A1:networkmanager_dmenu &:} Offline%{A}" +; %percentage% (default +label-muted = " Muted" +label-muted-foreground = ${color.sep} -; Available tokens: -; %ifname% [wireless+wired] -; %local_ip% [wireless+wired] -; %local_ip6% [wireless+wired] -; %essid% [wireless] -; %signal% [wireless] -; %upspeed% [wireless+wired] -; %downspeed% [wireless+wired] -; %linkspeed% [wired] -; Default: (none) -;label-packetloss = %essid% -;label-packetloss-foreground = #eefafafa - -; Only applies if <ramp-signal> is used -ramp-signal-0 = -ramp-signal-1 = -ramp-signal-2 = - -; Only applies if <animation-packetloss> is used -;;animation-packetloss-0 = ⚠ -;;animation-packetloss-0-foreground = #ffa64c -;;animation-packetloss-1 = ⚠ -;;animation-packetloss-1-foreground = #000000 -; Framerate in milliseconds -;;animation-packetloss-framerate = 500 - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ +; Only applies if <ramp-volume> is used +ramp-volume-0 =  +ramp-volume-1 =  +ramp-volume-2 =  +ramp-volume-foreground = ${color.blue} + +; If defined, it will replace <ramp-volume> when +; headphones are plugged in to `headphone_control_numid` +; If undefined, <ramp-volume> will be used for both +; Only applies if <ramp-volume> is used +ramp-headphones-0 =  +ramp-headphones-background = ${color.blue} + +click-right = "alacritty -e pulsemixer" +click-middle = pavucontrol [module/pulseaudio] type = internal/pulseaudio @@ -897,271 +605,3 @@ ramp-volume-0 =  ramp-volume-1 =  ramp-volume-2 =  ramp-volume-foreground = ${color.blue} - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/temp-cpu] -type = internal/temperature - -; Seconds to sleep between updates -; Default: 1 -interval = 2 - -; Thermal zone to use -; To list all the zone types, run -; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done -; Default: 0 -thermal-zone = 0 - -; Full path of temperature sysfs path -; Use `sensors` to find preferred temperature source, then run -; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done -; to find path to desired file -; Default reverts to thermal zone setting -;;hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input -hwmon-path = /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon3/temp2_input - -; Threshold temperature to display warning label (in degrees celsius) -; Default: 80 -base-temperature = 40 -warn-temperature = 75 - -; Whether or not to show units next to the temperature tokens (°C, °F) -; Default: true -units = true - -; Available tags: -; <label> (default) -; <ramp> -format = <ramp>cpu <label> - -; Available tags: -; <label-warn> (default) -; <ramp> -format-warn = <ramp>cpu <label-warn> - -; Available tokens: -; %temperature% (deprecated) -; %temperature-c% (default, temperature in °C) -; %temperature-f% (temperature in °F) -label = %temperature-c% - -; Available tokens: -; %temperature% (deprecated) -; %temperature-c% (default, temperature in °C) -; %temperature-f% (temperature in °F) -label-warn = "%temperature-c%" -label-warn-foreground = ${color.red} - -; Requires the <ramp> tag -; The icon selection will range from 0 to `warn-temperature` -; with the current temperature as index. -ramp-0 =  -ramp-1 =  -ramp-2 =  -ramp-3 =  -ramp-4 =  -ramp-foreground = ${color.cyan} - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/temp-gpu] -type = internal/temperature - -; Seconds to sleep between updates -; Default: 1 -interval = 2 - -; Thermal zone to use -; To list all the zone types, run -; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done -; Default: 0 -thermal-zone = 0 - -; Full path of temperature sysfs path -; Use `sensors` to find preferred temperature source, then run -; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done -; to find path to desired file -; Default reverts to thermal zone setting -;;hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input -hwmon-path = /sys/devices/pci0000:00/0000:00:03.1/0000:2d:00.0/0000:2e:00.0/0000:2f:00.0/hwmon/hwmon2/temp1_input - -; Threshold temperature to display warning label (in degrees celsius) -; Default: 80 -base-temperature = 40 -warn-temperature = 75 - -; Whether or not to show units next to the temperature tokens (°C, °F) -; Default: true -units = true - -; Available tags: -; <label> (default) -; <ramp> -format = <ramp>gpu <label> - -; Available tags: -; <label-warn> (default) -; <ramp> -format-warn = <ramp>gpu <label-warn> - -; Available tokens: -; %temperature% (deprecated) -; %temperature-c% (default, temperature in °C) -; %temperature-f% (temperature in °F) -label = %temperature-c% - -; Available tokens: -; %temperature% (deprecated) -; %temperature-c% (default, temperature in °C) -; %temperature-f% (temperature in °F) -label-warn = "%temperature-c%" -label-warn-foreground = ${color.red} - -; Requires the <ramp> tag -; The icon selection will range from 0 to `warn-temperature` -; with the current temperature as index. -ramp-0 =  -ramp-1 =  -ramp-2 =  -ramp-3 =  -ramp-4 =  -ramp-foreground = ${color.cyan} - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/keyboard] -type = internal/xkeyboard - -; List of indicators to ignore -blacklist-0 = num lock -blacklist-1 = scroll lock - -; Available tags: -; <label-layout> (default) -; <label-indicator> (default) -format = <label-layout> <label-indicator> -format-prefix =  -format-prefix-foreground = ${color.blue-gray} - -; Available tokens: -; %layout% -; %name% -; %number% -; Default: %layout% -label-layout = " %layout%" - -; Available tokens: -; %name% -; Default: %name% -label-indicator-on = "%name%" -label-indicator-on-foreground = ${color.cyan} - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/title] -type = internal/xwindow - -; Available tags: -; <label> (default) -format = <label> -format-prefix = -format-foreground = ${color.foreground} - -; Available tokens: -; %title% -; Default: %title% -label = "%title%" -label-maxlen = 60 - -; Used instead of label when there is no window title -label-empty = "Desktop" - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/workspaces] -type = internal/xworkspaces - -; Only show workspaces defined on the same output as the bar -; -; Useful if you want to show monitor specific workspaces -; on different bars -; -; Default: false -pin-workspaces = true - -; Create click handler used to focus desktop -; Default: true -enable-click = true - -; Create scroll handlers used to cycle desktops -; Default: true -enable-scroll = true - -; icon-[0-9]+ = <desktop-name>;<icon> -; NOTE: The desktop name needs to match the name configured by the WM -; You can get a list of the defined desktops using: -; $ xprop -root _NET_DESKTOP_NAMES -icon-0 = 1;1 -icon-1 = 2;2 -icon-2 = 3;3 -icon-3 = 4;4 -icon-4 = 5;5 -icon-5 = 6;6 -icon-6 = 7;7 -icon-7 = 8;8 -icon-8 = 9;9 -icon-9 = 10;10 -icon-default =  - -; Available tags: -; <label-monitor> -; <label-state> - gets replaced with <label-(active|urgent|occupied|empty)> -; Default: <label-state> -format = <label-state> - -; Available tokens: -; %name% -; Default: %name% -label-monitor = %name% - -; Available tokens: -; %name% -; %icon% -; %index% -; Default: %icon% %name% -label-active = [ %icon% ] -label-active-foreground = ${color.purple} -; label-active-underline = ${color.purple} - -; Available tokens: -; %name% -; %icon% -; %index% -; Default: %icon% %name% -label-occupied = %icon% -label-occupied-foreground = ${color.blue} - -; Available tokens: -; %name% -; %icon% -; %index% -; Default: %icon% %name% -label-urgent = %icon% -label-urgent-foreground = ${color.red} -label-urgent-underline = ${color.red} - -; Available tokens: -; %name% -; %icon% -; %index% -; Default: %icon% %name% -label-empty = %icon% -label-empty-foreground = ${color.foreground} - -label-active-padding = 1 -label-urgent-padding = 1 -label-occupied-padding = 1 -label-empty-padding = 1 - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ diff --git a/.config/polybar/preview.ini b/.config/polybar/preview.ini @@ -1,310 +0,0 @@ -;; ┌────────────────────────────────────────────────────────────────────┐ -;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀█░█▀▄░█▀▀░█░█░▀█▀░█▀▀░█░█░█▀▀│ -;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█▀▀░█▀▄░█▀▀░▀▄▀░░█░░█▀▀░█▄█░▀▀█│ -;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀░░░▀░▀░▀▀▀░░▀░░▀▀▀░▀▀▀░▀░▀░▀▀▀│ -;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│ -;; └────────────────────────────────────────────────────────────────────┘ - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -;; Global WM Settings - -[global/wm] -; Adjust the _NET_WM_STRUT_PARTIAL top value -; Used for top aligned bars -margin-bottom = 0 - -; Adjust the _NET_WM_STRUT_PARTIAL bottom value -; Used for bottom aligned bars -margin-top = 0 - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -;; File Inclusion -; include an external file, like module file, etc. - -include-file = ~/.config/polybar/bars.ini -include-file = ~/.config/polybar/colors.ini -include-file = ~/.config/polybar/modules.ini -include-file = ~/.config/polybar/user_modules.ini - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -;; Bar Settings - -[bar/main] -; Use either of the following command to list available outputs: -; If unspecified, the application will pick the first one it finds. -; $ polybar -m | cut -d ':' -f 1 -; $ xrandr -q | grep " connected" | cut -d ' ' -f1 -monitor = - -; Use the specified monitor as a fallback if the main one is not found. -monitor-fallback = - -; Require the monitor to be in connected state -; XRandR sometimes reports my monitor as being disconnected (when in use) -monitor-strict = false - -; Tell the Window Manager not to configure the window. -; Use this to detach the bar if your WM is locking its size/position. -override-redirect = false - -; Put the bar at the bottom of the screen -bottom = false - -; Prefer fixed center position for the `modules-center` block -; When false, the center position will be based on the size of the other blocks. -fixed-center = true - -; Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%), -; the percentage can optionally be extended with a pixel offset like so: -; 50%:-10, this will result in a width or height of 50% minus 10 pixels -width = 100% -height = 34 - -; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) -; the percentage can optionally be extended with a pixel offset like so: -; 50%:-10, this will result in an offset in the x or y direction -; of 50% minus 10 pixels -offset-x = 0% -offset-y = 0% - -; Background ARGB color (e.g. #f00, #ff992a, #ddff1023) -background = ${color.background} - -; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023) -foreground = ${color.foreground} - -; Background gradient (vertical steps) -; background-[0-9]+ = #aarrggbb -;;background-0 = - -; Value used for drawing rounded corners -; Note: This shouldn't be used together with border-size because the border -; doesn't get rounded -; Individual top/bottom values can be defined using: -; radius-{top,bottom} -radius-top = 0.0 -radius-bottom = 0.0 - -; Under-/overline pixel size and argb color -; Individual values can be defined using: -; {overline,underline}-size -; {overline,underline}-color -line-size = 5 -line-color = ${color.background} - -; Values applied to all borders -; Individual side values can be defined using: -; border-{left,top,right,bottom}-size -; border-{left,top,right,bottom}-color -; The top and bottom borders are added to the bar height, so the effective -; window height is: -; height + border-top-size + border-bottom-size -; Meanwhile the effective window width is defined entirely by the width key and -; the border is placed withing this area. So you effectively only have the -; following horizontal space on the bar: -; width - border-right-size - border-left-size -border-bottom-size = 0 -border-bottom-color = ${color.foreground} - -; Number of spaces to add at the beginning/end of the bar -; Individual side values can be defined using: -; padding-{left,right} -padding = 0 - -; Number of spaces to add before/after each module -; Individual side values can be defined using: -; module-margin-{left,right} -module-margin-left = 1 -module-margin-right = 1 - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -; Fonts are defined using <font-name>;<vertical-offset> -; Font names are specified using a fontconfig pattern. -; font-0 = NotoSans-Regular:size=8;2 -; font-1 = MaterialIcons:size=10 -; font-2 = Termsynu:size=8;-1 -; font-3 = FontAwesome:size=10 -; See the Fonts wiki page for more details - -font-0 = "Iosevka Nerd Font:size=10;4" -font-1 = "Iosevka Nerd Font:size=10;3" -font-2 = "feather:size=12;3" - -; Modules are added to one of the available blocks -; modules-left = cpu ram -; modules-center = xwindow xbacklight -; modules-right = ipc clock - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[bar/top] -inherit = bar/main -offset-y = 10 -modules-center = title sep menu sep term files browser settings sep filesystem sep temperature sep color-switch sep keyboard sep pulseaudio sep backlight sep updates sep powermenu -enable-ipc = true - -[bar/mid] -inherit = bar/main -offset-y = 54 -modules-center = volume sep brightness sep battery_bar sep cpu_bar sep filesystem_bar sep memory_bar sep mpd_bar -enable-ipc = true - -[bar/bottom] -inherit = bar/main -offset-y = 98 -modules-center = launcher sep workspaces sep cpu sep memory sep mpd sep alsa sep battery sep network sep date sep sysmenu -enable-ipc = true - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -; The separator will be inserted between the output of each module -separator = - -; Opacity value between 0.0 and 1.0 used on fade in/out -dim-value = 1.0 - -; Value to be used to set the WM_NAME atom -; If the value is empty or undefined, the atom value -; will be created from the following template: polybar-[BAR]_[MONITOR] -; NOTE: The placeholders are not available for custom values -wm-name = - -; Locale used to localize various module data (e.g. date) -; Expects a valid libc locale, for example: sv_SE.UTF-8 -locale = - -; Position of the system tray window -; If empty or undefined, tray support will be disabled -; NOTE: A center aligned tray will cover center aligned modules -; -; Available positions: -; left -; center -; right -; none -tray-position = none - -; If true, the bar will not shift its -; contents when the tray changes -tray-detached = false - -; Tray icon max size -tray-maxsize = 16 - -; Background color for the tray container -; ARGB color (e.g. #f00, #ff992a, #ddff1023) -; By default the tray container will use the bar -; background color. -tray-background = ${color.background} - -; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) -tray-offset-x = 0 -tray-offset-y = 0 - -; Pad the sides of each tray icon -tray-padding = 0 - -; Scale factor for tray clients -tray-scale = 1.0 - -; Restack the bar window and put it above the -; selected window manager's root -; -; Fixes the issue where the bar is being drawn -; on top of fullscreen window's -; -; Currently supported WM's: -; bspwm -; i3 (requires: `override-redirect = true`) -;;wm-restack = - -; Set a DPI values used when rendering text -; This only affects scalable fonts -; dpi = - -; Enable support for inter-process messaging -; See the Messaging wiki page for more details. -;enable-ipc = true - -; Fallback click handlers that will be called if -; there's no matching module handler found. -click-left = -click-middle = -click-right = -scroll-up = -scroll-down = -double-click-left = -double-click-middle = -double-click-right = - -; Requires polybar to be built with xcursor support (xcb-util-cursor) -; Possible values are: -; - default : The default pointer as before, can also be an empty string (default) -; - pointer : Typically in the form of a hand -; - ns-resize : Up and down arrows, can be used to indicate scrolling -cursor-click = -cursor-scroll = - -;; WM Workspace Specific - -; bspwm -;;scroll-up = bspwm-desknext -;;scroll-down = bspwm-deskprev -;;scroll-up = bspc desktop -f prev.local -;;scroll-down = bspc desktop -f next.local - -;i3 -;;scroll-up = i3wm-wsnext -;;scroll-down = i3wm-wsprev -;;scroll-up = i3-msg workspace next_on_output -;;scroll-down = i3-msg workspace prev_on_output - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -;; Application Settings - -[settings] -; The throttle settings lets the eventloop swallow up til X events -; if they happen within Y millisecond after first event was received. -; This is done to prevent flood of update event. -; -; For example if 5 modules emit an update event at the same time, we really -; just care about the last one. But if we wait too long for events to swallow -; the bar would appear sluggish so we continue if timeout -; expires or limit is reached. -throttle-output = 5 -throttle-output-for = 10 - -; Time in milliseconds that the input handler will wait between processing events -;throttle-input-for = 30 - -; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events -screenchange-reload = false - -; Compositing operators -; @see: https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t -compositing-background = source -compositing-foreground = over -compositing-overline = over -compositing-underline = over -compositing-border = over - -; Define fallback values used by all module formats -;format-foreground = -;format-background = -;format-underline = -;format-overline = -;format-spacing = -;format-padding = -;format-margin = -;format-offset = - -; Enables pseudo-transparency for the bar -; If set to true the bar can be transparent without a compositor. -pseudo-transparency = false - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ diff --git a/.config/polybar/scripts/get_mpris_status.sh b/.config/polybar/scripts/get_mpris_status.sh @@ -40,9 +40,9 @@ get_info() { if [ -n "$artist" ]; then album=$(extract_meta album) - [ -n "$album" ] && echo -n "  $album " + [ -n "$album" ] && echo -n "  $album -" - echo -n " ﴁ $artist  " + echo -n " ﴁ $artist - " fi echo "$title" @@ -62,9 +62,9 @@ get_info() { windowname=$(xdotool search --name --class --classname "$regex_title" getwindowname 2>/dev/null) case $windowname in "") ;; # ignore if empty - *Netflix*) echo "netflix";; - *YouTube*) echo "youtube";; - *"Prime Video"*) echo "prime";; + *Netflix*) echo "ﱄ";; + *YouTube*) echo "";; + *"Prime Video"*) echo "";; *"Corridor Digital"*) echo "corridor";; *) echo "browser";; esac;; @@ -95,5 +95,5 @@ if [ -n "${PAUSED[0]}" ]; then send_hook 2 get_info "${PAUSED[0]}" "$2" else - [ "$2" = icon ] && echo "none" || echo " 鈴 " + [ "$2" = icon ] && echo "none" || echo " 鈴" fi diff --git a/.config/polybar/scripts/powermenu.sh b/.config/polybar/scripts/powermenu.sh @@ -1,94 +0,0 @@ -#!/usr/bin/env bash - -## Author : Aditya Shakya -## Mail : adi1090x@gmail.com -## Github : @adi1090x -## Twitter : @adi1090x - -dir="~/.config/polybar/scripts/rofi" -uptime=$(uptime -p | sed -e 's/up //g') - -rofi_command="rofi -theme $dir/powermenu.rasi" - -# Options -shutdown=" Shutdown" -reboot=" Restart" -lock=" Lock" -suspend=" Sleep" -logout=" Logout" - -# Confirmation -confirm_exit() { - rofi -dmenu\ - -i\ - -no-fixed-num-lines\ - -p "Are You Sure? : "\ - -theme $dir/confirm.rasi -} - -# Message -msg() { - rofi -theme "$dir/message.rasi" -e "Available Options - yes / y / no / n" -} - -# Variable passed to rofi -options="$lock\n$suspend\n$logout\n$reboot\n$shutdown" - -chosen="$(echo -e "$options" | $rofi_command -p "Uptime: $uptime" -dmenu -selected-row 0)" -case $chosen in - $shutdown) - ans=$(confirm_exit &) - if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then - systemctl poweroff - elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then - exit 0 - else - msg - fi - ;; - $reboot) - ans=$(confirm_exit &) - if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then - systemctl reboot - elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then - exit 0 - else - msg - fi - ;; - $lock) - if [[ -f /usr/bin/i3lock ]]; then - i3lock - elif [[ -f /usr/bin/betterlockscreen ]]; then - betterlockscreen -l - fi - ;; - $suspend) - ans=$(confirm_exit &) - if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then - mpc -q pause - amixer set Master mute - systemctl suspend - elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then - exit 0 - else - msg - fi - ;; - $logout) - ans=$(confirm_exit &) - if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then - if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then - openbox --exit - elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then - bspc quit - elif [[ "$DESKTOP_SESSION" == "i3" ]]; then - i3-msg exit - fi - elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then - exit 0 - else - msg - fi - ;; -esac diff --git a/.config/polybar/scripts/rofi/colors.rasi b/.config/polybar/scripts/rofi/colors.rasi @@ -1,10 +0,0 @@ -/* colors */ - -* { - al: #00000000; - bg: #141C21FF; - bga: #1E262BFF; - fg: #93A1A1FF; - ac: #D12F2CFF; - se: #33C5BAFF; -} diff --git a/.config/polybar/scripts/rofi/networkmenu.rasi b/.config/polybar/scripts/rofi/networkmenu.rasi @@ -1,123 +0,0 @@ -/* - * - * Author : Aditya Shakya - * Mail : adi1090x@gmail.com - * Github : @adi1090x - * Twitter : @adi1090x - * - */ - -configuration { - font: "Iosevka Nerd Font 10"; - show-icons: true; - icon-theme: "Papirus"; - display-drun: ""; - drun-display-format: "{name}"; - disable-history: false; - fullscreen: false; - hide-scrollbar: true; - sidebar-mode: false; -} - -@import "colors.rasi" - -window { - transparency: "real"; - background-color: @bg; - text-color: @fg; - border: 0px 0px 0px 0px; - border-color: @ac; - border-radius: 0px; - width: 400px; - location: center; - x-offset: 0; - y-offset: 0; -} - -prompt { - enabled: true; - padding: 0px 0px 0px 10px; - background-color: @bga; - text-color: @fg; -} - -textbox-prompt-colon { - padding: 0px; - background-color: @bga; - text-color: @ac; - expand: false; - str: ""; - font: "feather 12"; -} - -entry { - background-color: @al; - text-color: @fg; - placeholder-color: @fg; - expand: true; - horizontal-align: 0; - placeholder: "Search..."; - padding: 0px 0px 0px 5px; - blink: true; -} - -inputbar { - children: [ textbox-prompt-colon, prompt ]; - background-color: @bga; - text-color: @fg; - expand: false; - border: 0px 0px 1px 0px; - border-radius: 0px; - border-color: @se; - margin: 0px; - padding: 10px; -} - -listview { - background-color: @al; - padding: 0px; - columns: 1; - lines: 8; - spacing: 5px; - cycle: true; - dynamic: true; - layout: vertical; -} - -mainbox { - background-color: @al; - border: 0px; - border-radius: 0px; - border-color: @ac; - children: [ inputbar, listview ]; - spacing: 5px; - padding: 5px; -} - -element { - background-color: @al; - text-color: @fg; - orientation: horizontal; - border-radius: 0px; - padding: 8px 8px 8px -15px; -} - -element-icon { - size: 24px; - border: 0px; -} - -element-text { - expand: true; - horizontal-align: 0; - vertical-align: 0.5; - margin: 0px 2.5px 0px 2.5px; -} - -element selected { - background-color: @se; - text-color: @bg; - border: 0px 0px 0px 0px; - border-radius: 0px; - border-color: @ac; -} diff --git a/.config/polybar/scripts/rofi/powermenu.rasi b/.config/polybar/scripts/rofi/powermenu.rasi @@ -1,123 +1,170 @@ -/* - * - * Author : Aditya Shakya - * Mail : adi1090x@gmail.com - * Github : @adi1090x - * Twitter : @adi1090x +/** * - */ + * Author : Aditya Shakya (adi1090x) + * Github : @adi1090x + * + * Rofi Theme File + * Rofi Version: 1.7.3 + **/ +/*****----- Configuration -----*****/ configuration { - font: "Iosevka Nerd Font 10"; - show-icons: true; - icon-theme: "Papirus"; - display-drun: ""; - drun-display-format: "{name}"; - disable-history: false; - fullscreen: false; - hide-scrollbar: true; - sidebar-mode: false; + show-icons: false; } -@import "colors.rasi" +/*****----- Global Properties -----*****/ +@import "shared/colors.rasi" +@import "shared/fonts.rasi" -window { - transparency: "real"; - background-color: @bg; - text-color: @fg; - border: 0px 0px 0px 0px; - border-color: @ac; - border-radius: 0px; - width: 350px; - location: center; - x-offset: 0; - y-offset: 0; -} +/* +USE_BUTTONS=YES +*/ -prompt { - enabled: true; - padding: 0px 0px 0px 10px; - background-color: @bga; - text-color: @fg; -} +/*****----- Main Window -----*****/ +window { + /* properties for window widget */ + transparency: "real"; + location: east; + anchor: east; + fullscreen: false; + width: 60px; + x-offset: -15px; + y-offset: -230px; -textbox-prompt-colon { - padding: 0px; - background-color: @bga; - text-color: @ac; - expand: false; - str: ""; - font: "feather 12"; + /* properties for all widgets */ + enabled: true; + margin: 0px; + padding: 0px; + border: 0px solid; + border-radius: 0px; + border-color: @selected; + cursor: "default"; + background-color: @background; } -entry { - background-color: @al; - text-color: @fg; - placeholder-color: @fg; - expand: true; - horizontal-align: 0; - placeholder: "Search..."; - padding: 0px 0px 0px 5px; - blink: true; +/*****----- Main Box -----*****/ +mainbox { + enabled: true; + spacing: 15px; + margin: 0px; + padding: 15px; + border: 0px solid; + border-radius: 0px; + border-color: @selected; + background-color: transparent; + children: [ "listview" ]; } +/*****----- Inputbar -----*****/ inputbar { - children: [ textbox-prompt-colon, prompt ]; - background-color: @bga; - text-color: @fg; - expand: false; - border: 0px 0px 1px 0px; - border-radius: 0px; - border-color: @se; - margin: 0px; - padding: 10px; + enabled: true; + spacing: 0px; + margin: 0px; + padding: 0px; + border: 0px; + border-radius: 6px; + border-color: @selected; + background-color: transparent; + text-color: @foreground; + children: [ "textbox-prompt-colon", "prompt"]; } -listview { - background-color: @al; - padding: 0px; - columns: 1; - lines: 5; - spacing: 5px; - cycle: true; - dynamic: true; - layout: vertical; +dummy { + background-color: transparent; } -mainbox { - background-color: @al; - border: 0px; - border-radius: 0px; - border-color: @ac; - children: [ inputbar, listview ]; - spacing: 5px; - padding: 5px; +textbox-prompt-colon { + enabled: true; + expand: false; + str: ""; + padding: 1px 1px; + border-radius: 0px; + background-color: @urgent; + text-color: @background; +} +prompt { + enabled: true; + padding: 1px; + border-radius: 0px; + background-color: @active; + text-color: @background; } -element { - background-color: @al; - text-color: @fg; - orientation: horizontal; - border-radius: 0px; - padding: 8px 8px 8px -20px; +/*****----- Message -----*****/ +message { + enabled: true; + margin: 0px; + padding: 1px; + border: 0px solid; + border-radius: 6px; + border-color: @selected; + background-color: @background-alt; + text-color: @foreground; +} +textbox { + background-color: inherit; + text-color: inherit; + vertical-align: 0.5; + horizontal-align: 0.5; + placeholder-color: @foreground; + blink: true; + markup: true; +} +error-message { + padding: 1px; + border: 0px solid; + border-radius: 6px; + border-color: @selected; + background-color: @background; + text-color: @foreground; } -element-icon { - size: 24px; - border: 0px; +/*****----- Listview -----*****/ +listview { + enabled: true; + columns: 1; + lines: 5; + cycle: true; + dynamic: true; + scrollbar: false; + layout: vertical; + reverse: false; + fixed-height: true; + fixed-columns: true; + + spacing: 7px; + margin: 0px; + padding: 0px; + border: 0px solid; + border-radius: 6px; + border-color: @selected; + background-color: transparent; + text-color: @foreground; + cursor: "default"; } +/*****----- Elements -----*****/ +element { + enabled: true; + spacing: 0px; + margin: 0px; + padding: 0px 0px; + border: 0px solid; + border-radius: 0px; + border-color: @selected; + background-color: @background-alt; + text-color: @foreground; + cursor: pointer; +} element-text { - expand: true; - horizontal-align: 0; - vertical-align: 0.5; - margin: 0px 2.5px 0px 2.5px; + font: "feather bold 19"; + background-color: transparent; + text-color: inherit; + cursor: inherit; + vertical-align: 0.5; + horizontal-align: 0.5; } - -element selected { - background-color: @se; - text-color: @bg; - border: 0px 0px 0px 0px; - border-radius: 0px; - border-color: @ac; +element selected.normal { + background-color: var(selected); + text-color: var(background); } diff --git a/.config/polybar/scripts/rofi/shared/colors.rasi b/.config/polybar/scripts/rofi/shared/colors.rasi @@ -0,0 +1,16 @@ +/** + * + * Author : Aditya Shakya (adi1090x) + * Github : @adi1090x + * + * Colors + **/ + +* { + background: #1E2127FF; + background-alt: #282B31FF; + foreground: #FFFFFFFF; + selected: #61AFEFFF; + active: #98C379FF; + urgent: #E06C75FF; +} diff --git a/.config/polybar/scripts/rofi/shared/fonts.rasi b/.config/polybar/scripts/rofi/shared/fonts.rasi @@ -0,0 +1,12 @@ +/** + * + * Author : Aditya Shakya (adi1090x) + * Github : @adi1090x + * + * Fonts + * + **/ + +* { + font: "JetBrains Mono Nerd Font 10"; +} diff --git a/.config/polybar/scripts/updates.sh b/.config/polybar/scripts/updates.sh @@ -29,7 +29,7 @@ while true; do elif (( UPDATES > 1 )); then echo "$UPDATES" else - echo "None" + echo "0" fi sleep 10 get_total_updates @@ -38,7 +38,7 @@ while true; do # when no updates are available, use a longer loop, this saves on CPU # and network uptime, only checking once every 30 min for new updates while (( UPDATES == 0 )); do - echo "None" + echo "0" sleep 1800 get_total_updates done diff --git a/.config/polybar/bars.ini b/.config/polybar/unused/bars.ini diff --git a/.config/polybar/unused/config.ini.old b/.config/polybar/unused/config.ini.old @@ -0,0 +1,303 @@ +;; ┌────────────────────────────────────────────────────────────┐ +;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█▀█░█▀▀░▀█▀░█▀▀│ +;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░█░█▀▀░░█░░█░█│ +;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀░▀░▀░░░▀▀▀░▀▀▀│ +;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│ +;; │░Modified By Raven @raven2cz░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│ +;; └────────────────────────────────────────────────────────────┘ + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +;; Global WM Settings + +[global/wm] +; Adjust the _NET_WM_STRUT_PARTIAL top value +; Used for top aligned bars +margin-bottom = 0 + +; Adjust the _NET_WM_STRUT_PARTIAL bottom value +; Used for bottom aligned bars +margin-top = 0 + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +;; File Inclusion +; include an external file, like module file, etc. + +include-file = ~/.config/polybar/bars.ini +include-file = ~/.config/polybar/colors.ini +include-file = ~/.config/polybar/modules.ini +include-file = ~/.config/polybar/user_modules.ini + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +;; Bar Settings + +[bar/main] +; Use either of the following command to list available outputs: +; If unspecified, the application will pick the first one it finds. +; $ polybar -m | cut -d ':' -f 1 +; $ xrandr -q | grep " connected" | cut -d ' ' -f1 +; monitor = + +; Use the specified monitor as a fallback if the main one is not found. +; monitor-fallback = + +; Require the monitor to be in connected state +; XRandR sometimes reports my monitor as being disconnected (when in use) +monitor-strict = false + +; Tell the Window Manager not to configure the window. +; Use this to detach the bar if your WM is locking its size/position. +override-redirect = false + +; Put the bar at the bottom of the screen +bottom = false + +; Prefer fixed center position for the `modules-center` block +; When false, the center position will be based on the size of the other blocks. +fixed-center = true + +; Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%), +; the percentage can optionally be extended with a pixel offset like so: +; 50%:-10, this will result in a width or height of 50% minus 10 pixels +width = 100%:-10px +height = 30 + +; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) +; the percentage can optionally be extended with a pixel offset like so: +; 50%:-10, this will result in an offset in the x or y direction +; of 50% minus 10 pixels +offset-x = 5px +offset-y = 5px + +; Background ARGB color (e.g. #f00, #ff992a, #ddff1023) +background = ${color.background} + +; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023) +foreground = ${color.foreground} + +; Background gradient (vertical steps) +; background-[0-9]+ = #aarrggbb +;;background-0 = + +; Value used for drawing rounded corners +; Note: This shouldn't be used together with border-size because the border +; doesn't get rounded +; Individual top/bottom values can be defined using: +; radius-{top,bottom} +border-size = 0.0 +radius = 0.0 +radius-top = 0.0 +radius-bottom = 0.0 + +; Under-/overline pixel size and argb color +; Individual values can be defined using: +; {overline,underline}-size +; {overline,underline}-color +line-size = 2 +line-color = ${color.foreground} + +; Values applied to all borders +; Individual side values can be defined using: +; border-{left,top,right,bottom}-size +; border-{left,top,right,bottom}-color +; The top and bottom borders are added to the bar height, so the effective +; window height is: +; height + border-top-size + border-bottom-size +; Meanwhile the effective window width is defined entirely by the width key and +; the border is placed withing this area. So you effectively only have the +; following horizontal space on the bar: +; width - border-right-size - border-left-size +border-bottom-size = 0.0 +border-bottom-color = ${color.blue} + +; Number of spaces to add at the beginning/end of the bar +; Individual side values can be defined using: +; padding-{left,right} +padding = 2 + +; Number of spaces to add before/after each module +; Individual side values can be defined using: +; module-margin-{left,right} +module-margin-left = 1 +module-margin-right = 1 + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +; Fonts are defined using <font-name>;<vertical-offset> +; Font names are specified using a fontconfig pattern. +; font-0 = NotoSans-Regular:size=8;2 +; font-1 = MaterialIcons:size=10 +; font-2 = Termsynu:size=8;-1 +; font-3 = FontAwesome:size=10 +; See the Fonts wiki page for more details + +; font-0 = "Iosevka Nerd Font:size=10;4" +; font-1 = "Iosevka Nerd Font:size=10;3" +; font-0 = "SF Mono Ligatues:size=10.5;3" +; font-0 = "scientifica:size=12;3" +font-0 = "JetbrainsMono Nerd Font:size=10.5;3" +font-1 = "feather:size=12;3" +font-2 = "Apple Color Emoji:size=11;3" +font-3 = "Iosevka Nerd Font:size=12;4" +font-4 = "Noto Sans Mono:size=12;3" + +; Modules are added to one of the available blocks +; modules-left = cpu ram +; modules-center = xwindow xbacklight +; modules-right = ipc clock + +modules-left = arch sep workspaces sep title sep updates +modules-center = mpris-play-pause mpris +modules-right = sep alsa sep cpu memory filesystem uptime sep date sep powermenu + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +; The separator will be inserted between the output of each module +separator = + +; Opacity value between 0.0 and 1.0 used on fade in/out +dim-value = 1.0 + +; Value to be used to set the WM_NAME atom +; If the value is empty or undefined, the atom value +; will be created from the following template: polybar-[BAR]_[MONITOR] +; NOTE: The placeholders are not available for custom values +wm-name = + +; Locale used to localize various module data (e.g. date) +; Expects a valid libc locale, for example: sv_SE.UTF-8 +locale = + +; Position of the system tray window +; If empty or undefined, tray support will be disabled +; NOTE: A center aligned tray will cover center aligned modules +; +; Available positions: +; left +; center +; right +; none +tray-position = center + +; If true, the bar will not shift its +; contents when the tray changes +tray-detached = false + +; Tray icon max size +tray-maxsize = 16 + +; Background color for the tray container +; ARGB color (e.g. #f00, #ff992a, #ddff1023) +; By default the tray container will use the bar +; background color. +tray-background = ${color.background} + +; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) +tray-offset-x = 0 +tray-offset-y = 0 + +; Pad the sides of each tray icon +tray-padding = 5 + +; Scale factor for tray clients +tray-scale = 1.0 + +; Restack the bar window and put it above the +; selected window manager's root +; +; Fixes the issue where the bar is being drawn +; on top of fullscreen window's +; +; Currently supported WM's: +; bspwm +; i3 (requires: `override-redirect = true`) +wm-restack = i3foreground + +; Set a DPI values used when rendering text +; This only affects scalable fonts +; dpi = + +; Enable support for inter-process messaging +; See the Messaging wiki page for more details. +enable-ipc = true + +; Fallback click handlers that will be called if +; there's no matching module handler found. +click-left = +click-middle = +click-right = +scroll-up = +scroll-down = +double-click-left = +double-click-middle = +double-click-right = + +; Requires polybar to be built with xcursor support (xcb-util-cursor) +; Possible values are: +; - default : The default pointer as before, can also be an empty string (default) +; - pointer : Typically in the form of a hand +; - ns-resize : Up and down arrows, can be used to indicate scrolling +cursor-click = +cursor-scroll = + +;; WM Workspace Specific + +; bspwm +;;scroll-up = bspwm-desknext +;;scroll-down = bspwm-deskprev +;;scroll-up = bspc desktop -f prev.local +;;scroll-down = bspc desktop -f next.local + +;i3 +;;scroll-up = i3wm-wsnext +;;scroll-down = i3wm-wsprev +;;scroll-up = i3-msg workspace next_on_output +;;scroll-down = i3-msg workspace prev_on_output + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +;; Application Settings + +[settings] +; The throttle settings lets the eventloop swallow up til X events +; if they happen within Y millisecond after first event was received. +; This is done to prevent flood of update event. +; +; For example if 5 modules emit an update event at the same time, we really +; just care about the last one. But if we wait too long for events to swallow +; the bar would appear sluggish so we continue if timeout +; expires or limit is reached. +throttle-output = 5 +throttle-output-for = 10 + +; Time in milliseconds that the input handler will wait between processing events +;throttle-input-for = 30 + +; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events +screenchange-reload = false + +; Compositing operators +; @see: https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t +compositing-background = source +compositing-foreground = over +compositing-overline = over +compositing-underline = over +compositing-border = over + +; Define fallback values used by all module formats +;format-foreground = +;format-background = +;format-underline = +;format-overline = +;format-spacing = +;format-padding = +;format-margin = +;format-offset = + +; Enables pseudo-transparency for the bar +; If set to true the bar can be transparent without a compositor. +pseudo-transparency = true + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ diff --git a/.config/polybar/unused/modules.ini b/.config/polybar/unused/modules.ini @@ -0,0 +1,1167 @@ +;; ┌────────────────────────────────────────────────────────────────┐ +;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▄█░█▀█░█▀▄░█░█░█░░░█▀▀░█▀▀│ +;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░█░█░█░█░█░█░█░█░░░█▀▀░▀▀█│ +;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀░▀░▀▀▀░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀│ +;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│ +;; │░Modified By Raven @raven2cz░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│ +;; └────────────────────────────────────────────────────────────────┘ + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/alsa] +type = internal/alsa + +; Soundcard to be used +; Usually in the format hw:# where # is the card number +; You can find the different card numbers in `/proc/asound/cards` +master-soundcard = default +speaker-soundcard = default +headphone-soundcard = default + +; Name of the master, speaker and headphone mixers +; Use the following command to list available mixer controls: +; $ amixer scontrols | sed -nr "s/.*'([[:alnum:]]+)'.*/\1/p" +; If master, speaker or headphone-soundcard isn't the default, +; use `amixer -c # scontrols` instead where # is the number +; of the master, speaker or headphone soundcard respectively +; +; Default: Master +master-mixer = Master + +; Optionally define speaker and headphone mixers +; Default: none +;;speaker-mixer = Speaker +; Default: none +;;headphone-mixer = Headphone + +; NOTE: This is required if headphone_mixer is defined +; Use the following command to list available device controls +; $ amixer controls | sed -r "/CARD/\!d; s/.*=([0-9]+).*name='([^']+)'.*/printf '%3.0f: %s\n' '\1' '\2'/e" | sort +; You may also need to use `amixer -c # controls` as above for the mixer names +; Default: none +;;headphone-id = 9 + +; Use volume mapping (similar to amixer -M and alsamixer), where the increase in volume is linear to the ear +; Default: false +;;mapped = true + +; Interval for volume increase/decrease (in percent points) +; Default: 5 +interval = 5 + +; Available tags: +; <label-volume> (default) +; <ramp-volume> +; <bar-volume> +format-volume = <ramp-volume> <label-volume> + +; Available tags: +; <label-muted> (default) +; <ramp-volume> +; <bar-volume> +format-muted = <label-muted> +format-muted-prefix =  +format-muted-prefix-foreground = ${color.red} + +; Available tokens: +; %percentage% (default) +label-volume = %percentage%% +label-volume-foreground = ${color.foreground} + +; Available tokens: +; %percentage% (default +label-muted = " Muted" +label-muted-foreground = ${color.sep} + +; Only applies if <ramp-volume> is used +ramp-volume-0 =  +ramp-volume-1 =  +ramp-volume-2 =  +ramp-volume-foreground = ${color.blue} + +; If defined, it will replace <ramp-volume> when +; headphones are plugged in to `headphone_control_numid` +; If undefined, <ramp-volume> will be used for both +; Only applies if <ramp-volume> is used +ramp-headphones-0 =  +ramp-headphones-background = ${color.blue} + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/backlight] +;type = internal/xbacklight +type = internal/backlight + +; Use the following command to list available cards: +; $ ls -1 /sys/class/backlight/ +;card = intel_backlight +card = amdgpu_bl0 + +; Available tags: +; <label> (default) +; <ramp> +; <bar> +format = <ramp> <label> + +; Available tokens: +; %percentage% (default) +label = %percentage%% + +; Only applies if <ramp> is used +ramp-0 =  +ramp-1 =  +ramp-2 =  +ramp-3 =  +ramp-4 =  +ramp-foreground = ${color.lime} + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/battery] +type = internal/battery + +; This is useful in case the battery never reports 100% charge +full-at = 99 + +; Use the following command to list batteries and adapters: +; $ ls -1 /sys/class/power_supply/ +battery = BAT1 +adapter = ACAD + +; If an inotify event haven't been reported in this many +; seconds, manually poll for new values. +; +; Needed as a fallback for systems that don't report events +; on sysfs/procfs. +; +; Disable polling by setting the interval to 0. +; +; Default: 5 +poll-interval = 2 + +; see "man date" for details on how to format the time string +; NOTE: if you want to use syntax tags here you need to use %%{...} +; Default: %H:%M:%S +time-format = %H:%M + +; Available tags: +; <label-charging> (default) +; <bar-capacity> +; <ramp-capacity> +; <animation-charging> +format-charging = <label-charging> +format-charging-prefix = "" +format-charging-prefix-foreground = ${color.green} + +; Available tags: +; <label-discharging> (default) +; <bar-capacity> +; <ramp-capacity> +; <animation-discharging> +format-discharging = <label-discharging> +format-discharging-prefix = "" +format-discharging-prefix-foreground = ${color.pink} + +; Available tags: +; <label-full> (default) +; <bar-capacity> +; <ramp-capacity> +format-full = <label-full> +format-full-prefix =  +format-full-prefix-foreground = ${color.red} + +; Available tokens: +; %percentage% (default) +; %time% +; %consumption% (shows current charge rate in watts) +label-charging = " %percentage%%" + +; Available tokens: +; %percentage% (default) +; %time% +; %consumption% (shows current discharge rate in watts) +label-discharging = " %percentage%%" + +; Available tokens: +; %percentage% (default) +label-full = " Full" + +; Only applies if <ramp-capacity> is used +ramp-capacity-0 = +ramp-capacity-1 = +ramp-capacity-2 = +ramp-capacity-3 = +ramp-capacity-4 = + +; Only applies if <bar-capacity> is used +;bar-capacity-width = 10 + +; Only applies if <animation-charging> is used +animation-charging-0 = +animation-charging-1 = + +; Framerate in milliseconds +animation-charging-framerate = 750 + +; Only applies if <animation-discharging> is used +;;animation-discharging-0 = ${battery.anim0} +;;animation-discharging-1 = ${battery.anim1} + +; Framerate in milliseconds +;animation-discharging-framerate = 500 + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +;;[module/bspwm] +; type = internal/bspwm + +; Only show workspaces defined on the same output as the bar +; NOTE: The bspwm and XRandR monitor names must match, which they do by default. +; Default: true +; pin-workspaces = true + +; Output mode flags after focused state label +; Default: false +; inline-mode = false + +; Create click handler used to focus workspace +; Default: true +; enable-click = false + +; Create scroll handlers used to cycle workspaces +; Default: true +; enable-scroll = false + +; Set the scroll cycle direction +; Default: true +; reverse-scroll = false + +; Use fuzzy (partial) matching on labels when assigning +; icons to workspaces +; Example: code;♚ will apply the icon to all workspaces +; containing 'code' in the label +; Default: false +;;fuzzy-match = true + +; ws-icon-[0-9]+ = label;icon +; Note that the label needs to correspond with the bspwm workspace name +;;ws-icon-0 = code;♚ +;;ws-icon-1 = office;♛ +;;ws-icon-2 = graphics;♜ +;;ws-icon-3 = mail;♝ +;;ws-icon-4 = web;♞ +;;ws-icon-default = ♟ + +; Available tags: +; <label-monitor> +; <label-state> - gets replaced with <label-(focused|urgent|occupied|empty)> +; <label-mode> - gets replaced with <label-(monocle|tiled|fullscreen|floating|locked|sticky|private)> +; Default: <label-state> +;;format = <label-state> <label-mode> + +; Available tokens: +; %name% +; Default: %name% +;;label-monitor = %name% + +; If any values for label-dimmed-N are defined, the workspace/mode +; colors will get overridden with those values if the monitor is out of focus +; To only override workspaces in a specific state, use: +; label-dimmed-focused +; label-dimmed-occupied +; label-dimmed-urgent +; label-dimmed-empty +;;label-dimmed-foreground = #555 +;;label-dimmed-underline = ${bar/top.background} +;;label-dimmed-focused-background = #f00 + +; Available tokens: +; %name% +; %icon% +; %index% +; Default: %icon% %name% +;;label-focused = %icon% +;;label-focused-foreground = #ffffff +;;label-focused-background = #3f3f3f +;;label-focused-underline = #fba922 + +; Available tokens: +; %name% +; %icon% +; %index% +; Default: %icon% %name% +;;label-occupied = %icon% +;;label-occupied-underline = #555555 + +; Available tokens: +; %name% +; %icon% +; %index% +; Default: %icon% %name% +;;label-urgent = %icon% +;;label-urgent-foreground = #000000 +;;label-urgent-background = #bd2c40 +;;label-urgent-underline = #9b0a20 + +; Available tokens: +; %name% +; %icon% +; %index% +; Default: %icon% %name% +;;label-empty = %icon% +;;label-empty-foreground = #55 + +; The following labels will be used to indicate the layout/mode +; for the focused workspace. Requires <label-mode> +; +; Available tokens: +; None +;label-monocle =  +;label-tiled =  +;label-fullscreen =  +;label-floating =  +;label-pseudotiled = P +;label-locked =  +;label-locked-foreground = #bd2c40 +;label-sticky =  +;label-sticky-foreground = #fba922 +;label-private =  +;label-private-foreground = #bd2c40 + +; Separator in between workspaces +;;label-separator = | +;;label-separator-padding = 2 +;;label-separator-foreground = #ffb52a + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/cpu] +type = internal/cpu + +; Seconds to sleep between updates +; Default: 1 +interval = 1 + +; Available tags: +; <label> (default) +; <bar-load> +; <ramp-load> +; <ramp-coreload> +;;format = <label> <ramp-coreload> +format = <label> +format-prefix =  +format-prefix-foreground = ${color.green} + +; Available tokens: +; %percentage% (default) - total cpu load averaged over all cores +; %percentage-sum% - Cumulative load on all cores +; %percentage-cores% - load percentage for each core +; %percentage-core[1-9]% - load percentage for specific core +label = " %percentage%%" + +; Spacing between individual per-core ramps +;;ramp-coreload-spacing = 1 +;;ramp-coreload-0 = ${cpu.load0} +;;ramp-coreload-1 = ${cpu.load1} + +;;ramp-load-0 = ${cpu.load0} +;;ramp-load-1 = ${cpu.load1} + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/date] +type = internal/date + +; Seconds to sleep between updates +interval = 1.0 + +; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string +; NOTE: if you want to use syntax tags here you need to use %%{...} +date = %A, %d %B + +; Optional time format +time = %k:%M + +; if `date-alt` or `time-alt` is defined, clicking +; the module will toggle between formats +date-alt = %A, %d %B %Y +time-alt = %I:%M:%S %p + +; Available tags: +; <label> (default) +format = <label> +format-prefix = " " +format-prefix-foreground = ${color.white} + +; Available tokens: +; %date% +; %time% +; Default: %date% +label = %date% at %{F#4DD0E1}%time%%{F-} +label-font = 0 +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/filesystem] +type = internal/fs + +; Mountpoints to display +mount-0 = / +;;mount-1 = /home +;;mount-2 = /var + +; Seconds to sleep between updates +; Default: 30 +interval = 30 + +; Display fixed precision values +; Default: false +fixed-values = true + +; Spacing between entries +; Default: 2 +;;spacing = 4 + +; Available tags: +; <label-mounted> (default) +; <bar-free> +; <bar-used> +; <ramp-capacity> +format-mounted = <label-mounted> +format-mounted-prefix =  +format-mounted-prefix-foreground = ${color.orange} + +; Available tags: +; <label-unmounted> (default) +format-unmounted = <label-unmounted> +format-unmounted-prefix =  +format-unmounted-prefix-foreground = ${color.red} + +; Available tokens: +; %mountpoint% +; %type% +; %fsname% +; %percentage_free% +; %percentage_used% +; %total% +; %free% +; %used% +; Default: %mountpoint% %percentage_free%% +label-mounted = " %free%" + +; Available tokens: +; %mountpoint% +; Default: %mountpoint% is not mounted +label-unmounted = " %mountpoint%: NA" + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +;;[module/github] +;;type = internal/github + +; Accessing an access token stored in file +;;token = ${file:/path/to/file/containing/github/access.token} + +; Accessing an access token stored in an environment variable +;;token = ${env:GITHUB_ACCESS_TOKEN} + +; Whether empty notifications should be displayed or not +;;empty-notifications = false + +; Number of seconds in between requests +;;interval = 10 + +; Available tags: +; <label> (default) +;;format = <label> +;;format-prefix =  + +; Available tokens: +; %notifications% (default) +; Default: Notifications: %notifications% +;;label = %notifications% + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +;;[module/i3] +;;type = internal/i3 + +; Only show workspaces defined on the same output as the bar +; +; Useful if you want to show monitor specific workspaces +; on different bars +; +; Default: false +;;pin-workspaces = true + +; This will split the workspace name on ':' +; Default: false +;;strip-wsnumbers = true + +; Sort the workspaces by index instead of the default +; sorting that groups the workspaces by output +; Default: false +;;index-sort = true + +; Create click handler used to focus workspace +; Default: true +;;enable-click = false + +; Create scroll handlers used to cycle workspaces +; Default: true +;;enable-scroll = false + +; Wrap around when reaching the first/last workspace +; Default: true +;;wrapping-scroll = false + +; Set the scroll cycle direction +; Default: true +;;reverse-scroll = false + +; Use fuzzy (partial) matching on labels when assigning +; icons to workspaces +; Example: code;♚ will apply the icon to all workspaces +; containing 'code' in the label +; Default: false +;;fuzzy-match = true + +; ws-icon-[0-9]+ = label;icon +; NOTE: The label needs to match the name of the i3 workspace +;;ws-icon-0 = 1;♚ +;;ws-icon-1 = 2;♛ +;;ws-icon-2 = 3;♜ +;;ws-icon-3 = 4;♝ +;;ws-icon-4 = 5;♞ +;;ws-icon-default = ♟ +; NOTE: You cannot skip icons, e.g. to get a ws-icon-6 +; you must also define a ws-icon-5. + +; Available tags: +; <label-state> (default) - gets replaced with <label-(focused|unfocused|visible|urgent)> +; <label-mode> (default) +;;format = <label-state> <label-mode> + +; Available tokens: +; %mode% +; Default: %mode% +;;label-mode = %mode% +;;label-mode-padding = 2 +;;label-mode-background = #e60053 + +; Available tokens: +; %name% +; %icon% +; %index% +; %output% +; Default: %icon% %name% +;;label-focused = %index% +;;label-focused-foreground = #ffffff +;;label-focused-background = #3f3f3f +;;label-focused-underline = #fba922 +;;label-focused-padding = 4 + +; Available tokens: +; %name% +; %icon% +; %index% +; %output% +; Default: %icon% %name% +;;label-unfocused = %index% +;;label-unfocused-padding = 4 + +; Available tokens: +; %name% +; %icon% +; %index% +; %output% +; Default: %icon% %name% +;;label-visible = %index% +;;label-visible-underline = #555555 +;;label-visible-padding = 4 + +; Available tokens: +; %name% +; %icon% +; %index% +; %output% +; Default: %icon% %name% +;;label-urgent = %index% +;;label-urgent-foreground = #000000 +;;label-urgent-background = #bd2c40 +;;label-urgent-padding = 4 + +; Separator in between workspaces +;;label-separator = | +;;label-separator-padding = 2 +;;label-separator-foreground = #ffb52a + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/memory] +type = internal/memory + +; Seconds to sleep between updates +; Default: 1 +interval = 1 + +; Available tags: +; <label> (default) +; <bar-used> +; <bar-free> +; <ramp-used> +; <ramp-free> +; <bar-swap-used> +; <bar-swap-free> +; <ramp-swap-used> +; <ramp-swap-free> +format = <label> +format-prefix =  +format-prefix-foreground = ${color.blue} + +; Available tokens: +; %percentage_used% (default) +; %percentage_free% +; %gb_used% +; %gb_free% +; %gb_total% +; %mb_used% +; %mb_free% +; %mb_total% +; %percentage_swap_used% +; %percentage_swap_free% +; %mb_swap_total% +; %mb_swap_free% +; %mb_swap_used% +; %gb_swap_total% +; %gb_swap_free% +; %gb_swap_used% + +label = " %mb_used%" + +; Only applies if <ramp-used> is used +;;ramp-used-0 = ${memory.used0} +;;ramp-used-1 = ${memory.used1} +;;ramp-used-2 = ${memory.used2} + +; Only applies if <ramp-free> is used +;;ramp-free-0 = ${memory.free0} +;;ramp-free-1 = ${memory.free1} +;;ramp-free-2 = ${memory.free2} + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/mpd] +type = internal/mpd + +; Host where mpd is running (either ip or domain name) +; Can also be the full path to a unix socket where mpd is running. +;;host = 127.0.0.1 +;;port = 6600 +;;password = mysecretpassword + +; Seconds to sleep between progressbar/song timer sync +; Default: 1 +interval = 1 + +; Available tags: +; <label-song> (default) +; <label-time> +; <bar-progress> +; <toggle> - gets replaced with <icon-(pause|play)> +; <toggle-stop> - gets replaced with <icon-(stop|play)> +; <icon-random> +; <icon-repeat> +; <icon-repeatone> (deprecated) +; <icon-single> - Toggle playing only a single song. Replaces <icon-repeatone> +; <icon-consume> +; <icon-prev> +; <icon-stop> +; <icon-play> +; <icon-pause> +; <icon-next> +; <icon-seekb> +; <icon-seekf> +format-online = <label-song> <icon-prev> <toggle> <icon-next> +format-online-prefix =  +format-online-prefix-foreground = ${color.green} + +;format-playing = ${self.format-online} +;format-paused = ${self.format-online} +;format-stopped = ${self.format-online} + +; Available tags: +; <label-offline> +format-offline = <label-offline> +format-offline-prefix =  +format-offline-prefix-foreground = ${color.red} + +; Available tokens: +; %artist% +; %album-artist% +; %album% +; %date% +; %title% +; Default: %artist% - %title% +label-song = " %artist% - %title%" +label-song-maxlen = 25 +label-song-ellipsis = true + +; Available tokens: +; %elapsed% +; %total% +; Default: %elapsed% / %total% +label-time = %elapsed% / %total% +label-time-background = ${color.background-alt} +label-time-padding = 1 + +; Available tokens: +; None +label-offline = " Offline" + +; Only applies if <icon-X> is used +icon-play =  +icon-play-foreground = ${color.cyan} +icon-pause =  +icon-pause-foreground = ${color.cyan} +icon-stop =  +icon-stop-foreground = ${color.red} +icon-next =  +icon-next-foreground = ${color.cyan} +icon-prev =  +icon-prev-foreground = ${color.cyan} +icon-seekf = +icon-seekb = +icon-random = +icon-repeat = +icon-repeatone = +icon-single = +icon-consume = + +; Used to display the state of random/repeat/repeatone/single +; Only applies if <icon-[random|repeat|repeatone|single]> is used +toggle-on-foreground = ${color.primary} +toggle-off-foreground = ${color.red} + +; Only applies if <bar-progress> is used +;;bar-progress-width = 45 +;;bar-progress-indicator = | +;;bar-progress-fill = ─ +;;bar-progress-empty = ─ + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +; If you use both a wired and a wireless network, just add 2 module definitions. For example +[module/wired-network] +type = internal/network +;interface = enp38s0 +interface = eth0 + +[module/wireless-network] +type = internal/network +interface = wlp3s0 + +; Normal Module +[module/network] +type = internal/network +interface = wlan0 + +; Seconds to sleep between updates +; Default: 1 +interval = 1.0 + +; Test connectivity every Nth update +; A value of 0 disables the feature +; NOTE: Experimental (needs more testing) +; Default: 0 +;ping-interval = 3 + +; @deprecated: Define min width using token specifiers (%downspeed:min% and %upspeed:min%) +; Minimum output width of upload/download rate +; Default: 3 +;;udspeed-minwidth = 5 + +; Accumulate values from all interfaces +; when querying for up/downspeed rate +; Default: false +accumulate-stats = true + +; Consider an `UNKNOWN` interface state as up. +; Some devices have an unknown state, even when they're running +; Default: false +unknown-as-up = true + +; Available tags: +; <label-connected> (default) +; <ramp-signal> +format-connected = <label-connected> +format-connected-prefix =  +format-connected-prefix-foreground = ${color.purple} + +; Available tags: +; <label-disconnected> (default) +format-disconnected = <label-disconnected> +format-disconnected-prefix =  +format-disconnected-prefix-foreground = ${color.orange} + +; Available tags: +; <label-connected> (default) +; <label-packetloss> +; <animation-packetloss> +;;format-packetloss = <animation-packetloss> <label-connected> + +; Available tokens: +; %ifname% [wireless+wired] +; %local_ip% [wireless+wired] +; %local_ip6% [wireless+wired] +; %essid% [wireless] +; %signal% [wireless] +; %upspeed% [wireless+wired] +; %downspeed% [wireless+wired] +; %linkspeed% [wired] +; Default: %ifname% %local_ip% +label-connected = "%{A1:networkmanager_dmenu &:} %essid% %{F#6C77BB}%{F-} %downspeed%%{A}" + +; Available tokens: +; %ifname% [wireless+wired] +; Default: (none) +label-disconnected = "%{A1:networkmanager_dmenu &:} Offline%{A}" + +; Available tokens: +; %ifname% [wireless+wired] +; %local_ip% [wireless+wired] +; %local_ip6% [wireless+wired] +; %essid% [wireless] +; %signal% [wireless] +; %upspeed% [wireless+wired] +; %downspeed% [wireless+wired] +; %linkspeed% [wired] +; Default: (none) +;label-packetloss = %essid% +;label-packetloss-foreground = #eefafafa + +; Only applies if <ramp-signal> is used +ramp-signal-0 = +ramp-signal-1 = +ramp-signal-2 = + +; Only applies if <animation-packetloss> is used +;;animation-packetloss-0 = ⚠ +;;animation-packetloss-0-foreground = #ffa64c +;;animation-packetloss-1 = ⚠ +;;animation-packetloss-1-foreground = #000000 +; Framerate in milliseconds +;;animation-packetloss-framerate = 500 + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/pulseaudio] +type = internal/pulseaudio + +; Sink to be used, if it exists (find using `pacmd list-sinks`, name field) +; If not, uses default sink +sink = alsa_output.pci-0000_03_00.6.analog-stereo + +; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false +; Default: true +use-ui-max = false + +; Interval for volume increase/decrease (in percent points) +; Default: 5 +interval = 5 + +; Available tags: +; <label-volume> (default) +; <ramp-volume> +; <bar-volume> +format-volume = <ramp-volume> <label-volume> + +; Available tags: +; <label-muted> (default) +; <ramp-volume> +; <bar-volume> +format-muted = <label-muted> +format-muted-prefix =  +format-muted-prefix-foreground = ${color.red} + +; Available tokens: +; %percentage% (default) +label-volume = %percentage%% + +; Available tokens: +; %percentage% (default +label-muted = " Muted" +label-muted-foreground = ${color.sep} + +; Only applies if <ramp-volume> is used +ramp-volume-0 =  +ramp-volume-1 =  +ramp-volume-2 =  +ramp-volume-foreground = ${color.blue} + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/temp-cpu] +type = internal/temperature + +; Seconds to sleep between updates +; Default: 1 +interval = 2 + +; Thermal zone to use +; To list all the zone types, run +; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done +; Default: 0 +thermal-zone = 0 + +; Full path of temperature sysfs path +; Use `sensors` to find preferred temperature source, then run +; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done +; to find path to desired file +; Default reverts to thermal zone setting +;;hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input +hwmon-path = /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon3/temp2_input + +; Threshold temperature to display warning label (in degrees celsius) +; Default: 80 +base-temperature = 40 +warn-temperature = 75 + +; Whether or not to show units next to the temperature tokens (°C, °F) +; Default: true +units = true + +; Available tags: +; <label> (default) +; <ramp> +format = <ramp>cpu <label> + +; Available tags: +; <label-warn> (default) +; <ramp> +format-warn = <ramp>cpu <label-warn> + +; Available tokens: +; %temperature% (deprecated) +; %temperature-c% (default, temperature in °C) +; %temperature-f% (temperature in °F) +label = %temperature-c% + +; Available tokens: +; %temperature% (deprecated) +; %temperature-c% (default, temperature in °C) +; %temperature-f% (temperature in °F) +label-warn = "%temperature-c%" +label-warn-foreground = ${color.red} + +; Requires the <ramp> tag +; The icon selection will range from 0 to `warn-temperature` +; with the current temperature as index. +ramp-0 =  +ramp-1 =  +ramp-2 =  +ramp-3 =  +ramp-4 =  +ramp-foreground = ${color.cyan} + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/temp-gpu] +type = internal/temperature + +; Seconds to sleep between updates +; Default: 1 +interval = 2 + +; Thermal zone to use +; To list all the zone types, run +; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done +; Default: 0 +thermal-zone = 0 + +; Full path of temperature sysfs path +; Use `sensors` to find preferred temperature source, then run +; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done +; to find path to desired file +; Default reverts to thermal zone setting +;;hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input +hwmon-path = /sys/devices/pci0000:00/0000:00:03.1/0000:2d:00.0/0000:2e:00.0/0000:2f:00.0/hwmon/hwmon2/temp1_input + +; Threshold temperature to display warning label (in degrees celsius) +; Default: 80 +base-temperature = 40 +warn-temperature = 75 + +; Whether or not to show units next to the temperature tokens (°C, °F) +; Default: true +units = true + +; Available tags: +; <label> (default) +; <ramp> +format = <ramp>gpu <label> + +; Available tags: +; <label-warn> (default) +; <ramp> +format-warn = <ramp>gpu <label-warn> + +; Available tokens: +; %temperature% (deprecated) +; %temperature-c% (default, temperature in °C) +; %temperature-f% (temperature in °F) +label = %temperature-c% + +; Available tokens: +; %temperature% (deprecated) +; %temperature-c% (default, temperature in °C) +; %temperature-f% (temperature in °F) +label-warn = "%temperature-c%" +label-warn-foreground = ${color.red} + +; Requires the <ramp> tag +; The icon selection will range from 0 to `warn-temperature` +; with the current temperature as index. +ramp-0 =  +ramp-1 =  +ramp-2 =  +ramp-3 =  +ramp-4 =  +ramp-foreground = ${color.cyan} + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/keyboard] +type = internal/xkeyboard + +; List of indicators to ignore +blacklist-0 = num lock +blacklist-1 = scroll lock + +; Available tags: +; <label-layout> (default) +; <label-indicator> (default) +format = <label-layout> <label-indicator> +format-prefix =  +format-prefix-foreground = ${color.blue-gray} + +; Available tokens: +; %layout% +; %name% +; %number% +; Default: %layout% +label-layout = " %layout%" + +; Available tokens: +; %name% +; Default: %name% +label-indicator-on = "%name%" +label-indicator-on-foreground = ${color.cyan} + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/title] +type = internal/xwindow + +; Available tags: +; <label> (default) +format = <label> +format-prefix = +format-foreground = ${color.foreground} + +; Available tokens: +; %title% +; Default: %title% +label = "%title%" +label-maxlen = 60 + +; Used instead of label when there is no window title +label-empty = "Arch Linux" + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/workspaces] +type = internal/xworkspaces + +; Only show workspaces defined on the same output as the bar +; +; Useful if you want to show monitor specific workspaces +; on different bars +; +; Default: false +pin-workspaces = true + +; Create click handler used to focus desktop +; Default: true +enable-click = true + +; Create scroll handlers used to cycle desktops +; Default: true +enable-scroll = true + +; icon-[0-9]+ = <desktop-name>;<icon> +; NOTE: The desktop name needs to match the name configured by the WM +; You can get a list of the defined desktops using: +; $ xprop -root _NET_DESKTOP_NAMES +icon-0 = 1;1 +icon-1 = 2;2 +icon-2 = 3;3 +icon-3 = 4;4 +icon-4 = 5;5 +icon-5 = 6;6 +icon-6 = 7;7 +icon-7 = 8;8 +icon-8 = 9;9 +icon-9 = 10;10 +icon-default =  + +; Available tags: +; <label-monitor> +; <label-state> - gets replaced with <label-(active|urgent|occupied|empty)> +; Default: <label-state> +format = <label-state> + +; Available tokens: +; %name% +; Default: %name% +label-monitor = %name% + +; Available tokens: +; %name% +; %icon% +; %index% +; Default: %icon% %name% +label-active = [ %icon% ] +label-active-foreground = ${color.purple} +; label-active-underline = ${color.purple} + +; Available tokens: +; %name% +; %icon% +; %index% +; Default: %icon% %name% +label-occupied = %icon% +label-occupied-foreground = ${color.blue} + +; Available tokens: +; %name% +; %icon% +; %index% +; Default: %icon% %name% +label-urgent = %icon% +label-urgent-foreground = ${color.red} +label-urgent-underline = ${color.red} + +; Available tokens: +; %name% +; %icon% +; %index% +; Default: %icon% %name% +label-empty = %icon% +label-empty-foreground = ${color.foreground} + +label-active-padding = 1 +label-urgent-padding = 1 +label-occupied-padding = 1 +label-empty-padding = 1 + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ diff --git a/.config/polybar/unused/preview.ini b/.config/polybar/unused/preview.ini @@ -0,0 +1,310 @@ +;; ┌────────────────────────────────────────────────────────────────────┐ +;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀█░█▀▄░█▀▀░█░█░▀█▀░█▀▀░█░█░█▀▀│ +;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█▀▀░█▀▄░█▀▀░▀▄▀░░█░░█▀▀░█▄█░▀▀█│ +;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀░░░▀░▀░▀▀▀░░▀░░▀▀▀░▀▀▀░▀░▀░▀▀▀│ +;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│ +;; └────────────────────────────────────────────────────────────────────┘ + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +;; Global WM Settings + +[global/wm] +; Adjust the _NET_WM_STRUT_PARTIAL top value +; Used for top aligned bars +margin-bottom = 0 + +; Adjust the _NET_WM_STRUT_PARTIAL bottom value +; Used for bottom aligned bars +margin-top = 0 + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +;; File Inclusion +; include an external file, like module file, etc. + +include-file = ~/.config/polybar/unused_modules/bars.ini +include-file = ~/.config/polybar/colors.ini +include-file = ~/.config/polybar/unused_modules/modules.ini +include-file = ~/.config/polybar/unused_modules/user_modules.ini + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +;; Bar Settings + +[bar/main] +; Use either of the following command to list available outputs: +; If unspecified, the application will pick the first one it finds. +; $ polybar -m | cut -d ':' -f 1 +; $ xrandr -q | grep " connected" | cut -d ' ' -f1 +monitor = + +; Use the specified monitor as a fallback if the main one is not found. +monitor-fallback = + +; Require the monitor to be in connected state +; XRandR sometimes reports my monitor as being disconnected (when in use) +monitor-strict = false + +; Tell the Window Manager not to configure the window. +; Use this to detach the bar if your WM is locking its size/position. +override-redirect = false + +; Put the bar at the bottom of the screen +bottom = false + +; Prefer fixed center position for the `modules-center` block +; When false, the center position will be based on the size of the other blocks. +fixed-center = true + +; Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%), +; the percentage can optionally be extended with a pixel offset like so: +; 50%:-10, this will result in a width or height of 50% minus 10 pixels +width = 100% +height = 34 + +; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) +; the percentage can optionally be extended with a pixel offset like so: +; 50%:-10, this will result in an offset in the x or y direction +; of 50% minus 10 pixels +offset-x = 0% +offset-y = 0% + +; Background ARGB color (e.g. #f00, #ff992a, #ddff1023) +background = ${color.background} + +; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023) +foreground = ${color.foreground} + +; Background gradient (vertical steps) +; background-[0-9]+ = #aarrggbb +;;background-0 = + +; Value used for drawing rounded corners +; Note: This shouldn't be used together with border-size because the border +; doesn't get rounded +; Individual top/bottom values can be defined using: +; radius-{top,bottom} +radius-top = 0.0 +radius-bottom = 0.0 + +; Under-/overline pixel size and argb color +; Individual values can be defined using: +; {overline,underline}-size +; {overline,underline}-color +line-size = 5 +line-color = ${color.background} + +; Values applied to all borders +; Individual side values can be defined using: +; border-{left,top,right,bottom}-size +; border-{left,top,right,bottom}-color +; The top and bottom borders are added to the bar height, so the effective +; window height is: +; height + border-top-size + border-bottom-size +; Meanwhile the effective window width is defined entirely by the width key and +; the border is placed withing this area. So you effectively only have the +; following horizontal space on the bar: +; width - border-right-size - border-left-size +border-bottom-size = 0 +border-bottom-color = ${color.foreground} + +; Number of spaces to add at the beginning/end of the bar +; Individual side values can be defined using: +; padding-{left,right} +padding = 0 + +; Number of spaces to add before/after each module +; Individual side values can be defined using: +; module-margin-{left,right} +module-margin-left = 1 +module-margin-right = 1 + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +; Fonts are defined using <font-name>;<vertical-offset> +; Font names are specified using a fontconfig pattern. +; font-0 = NotoSans-Regular:size=8;2 +; font-1 = MaterialIcons:size=10 +; font-2 = Termsynu:size=8;-1 +; font-3 = FontAwesome:size=10 +; See the Fonts wiki page for more details + +font-0 = "Iosevka Nerd Font:size=10;4" +font-1 = "Iosevka Nerd Font:size=10;3" +font-2 = "feather:size=12;3" + +; Modules are added to one of the available blocks +; modules-left = cpu ram +; modules-center = xwindow xbacklight +; modules-right = ipc clock + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[bar/top] +inherit = bar/main +offset-y = 10 +modules-center = title sep menu sep term files browser settings sep filesystem sep temperature sep color-switch sep keyboard sep pulseaudio sep backlight sep updates sep powermenu +enable-ipc = true + +[bar/mid] +inherit = bar/main +offset-y = 54 +modules-center = volume sep brightness sep battery_bar sep cpu_bar sep filesystem_bar sep memory_bar sep mpd_bar +enable-ipc = true + +[bar/bottom] +inherit = bar/main +offset-y = 98 +modules-center = launcher sep workspaces sep cpu sep memory sep mpd sep alsa sep battery sep network sep date sep sysmenu +enable-ipc = true + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +; The separator will be inserted between the output of each module +separator = + +; Opacity value between 0.0 and 1.0 used on fade in/out +dim-value = 1.0 + +; Value to be used to set the WM_NAME atom +; If the value is empty or undefined, the atom value +; will be created from the following template: polybar-[BAR]_[MONITOR] +; NOTE: The placeholders are not available for custom values +wm-name = + +; Locale used to localize various module data (e.g. date) +; Expects a valid libc locale, for example: sv_SE.UTF-8 +locale = + +; Position of the system tray window +; If empty or undefined, tray support will be disabled +; NOTE: A center aligned tray will cover center aligned modules +; +; Available positions: +; left +; center +; right +; none +tray-position = none + +; If true, the bar will not shift its +; contents when the tray changes +tray-detached = false + +; Tray icon max size +tray-maxsize = 16 + +; Background color for the tray container +; ARGB color (e.g. #f00, #ff992a, #ddff1023) +; By default the tray container will use the bar +; background color. +tray-background = ${color.background} + +; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) +tray-offset-x = 0 +tray-offset-y = 0 + +; Pad the sides of each tray icon +tray-padding = 0 + +; Scale factor for tray clients +tray-scale = 1.0 + +; Restack the bar window and put it above the +; selected window manager's root +; +; Fixes the issue where the bar is being drawn +; on top of fullscreen window's +; +; Currently supported WM's: +; bspwm +; i3 (requires: `override-redirect = true`) +;;wm-restack = + +; Set a DPI values used when rendering text +; This only affects scalable fonts +; dpi = + +; Enable support for inter-process messaging +; See the Messaging wiki page for more details. +;enable-ipc = true + +; Fallback click handlers that will be called if +; there's no matching module handler found. +click-left = +click-middle = +click-right = +scroll-up = +scroll-down = +double-click-left = +double-click-middle = +double-click-right = + +; Requires polybar to be built with xcursor support (xcb-util-cursor) +; Possible values are: +; - default : The default pointer as before, can also be an empty string (default) +; - pointer : Typically in the form of a hand +; - ns-resize : Up and down arrows, can be used to indicate scrolling +cursor-click = +cursor-scroll = + +;; WM Workspace Specific + +; bspwm +;;scroll-up = bspwm-desknext +;;scroll-down = bspwm-deskprev +;;scroll-up = bspc desktop -f prev.local +;;scroll-down = bspc desktop -f next.local + +;i3 +;;scroll-up = i3wm-wsnext +;;scroll-down = i3wm-wsprev +;;scroll-up = i3-msg workspace next_on_output +;;scroll-down = i3-msg workspace prev_on_output + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +;; Application Settings + +[settings] +; The throttle settings lets the eventloop swallow up til X events +; if they happen within Y millisecond after first event was received. +; This is done to prevent flood of update event. +; +; For example if 5 modules emit an update event at the same time, we really +; just care about the last one. But if we wait too long for events to swallow +; the bar would appear sluggish so we continue if timeout +; expires or limit is reached. +throttle-output = 5 +throttle-output-for = 10 + +; Time in milliseconds that the input handler will wait between processing events +;throttle-input-for = 30 + +; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events +screenchange-reload = false + +; Compositing operators +; @see: https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t +compositing-background = source +compositing-foreground = over +compositing-overline = over +compositing-underline = over +compositing-border = over + +; Define fallback values used by all module formats +;format-foreground = +;format-background = +;format-underline = +;format-overline = +;format-spacing = +;format-padding = +;format-margin = +;format-offset = + +; Enables pseudo-transparency for the bar +; If set to true the bar can be transparent without a compositor. +pseudo-transparency = false + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ diff --git a/.config/polybar/preview.sh b/.config/polybar/unused/preview.sh diff --git a/.config/polybar/scripts/check-all-updates.sh b/.config/polybar/unused/scripts/check-all-updates.sh diff --git a/.config/polybar/scripts/checkupdates b/.config/polybar/unused/scripts/checkupdates diff --git a/.config/polybar/scripts/get_spotify_status.sh b/.config/polybar/unused/scripts/get_spotify_status.sh diff --git a/.config/polybar/scripts/launcher.sh b/.config/polybar/unused/scripts/launcher.sh diff --git a/.config/polybar/scripts/polywins.sh b/.config/polybar/unused/scripts/polywins.sh diff --git a/.config/polybar/unused/scripts/powermenu.sh b/.config/polybar/unused/scripts/powermenu.sh @@ -0,0 +1,94 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +dir="~/.config/polybar/scripts/rofi" +uptime=$(uptime -p | sed -e 's/up //g') + +rofi_command="rofi -no-lazy-grab -theme $dir/powermenu.rasi" + +# Options +shutdown=" Shutdown" +reboot=" Restart" +lock=" Lock" +suspend=" Sleep" +logout=" Logout" + +# Confirmation +confirm_exit() { + rofi -dmenu\ + -i\ + -no-fixed-num-lines\ + -p "Are You Sure? : "\ + -theme $dir/confirm.rasi +} + +# Message +msg() { + rofi -no-lazy-grab -theme "$dir/message.rasi" -e "Available Options - yes / y / no / n" +} + +# Variable passed to rofi +options="$lock\n$suspend\n$logout\n$reboot\n$shutdown" + +chosen="$(echo -e "$options" | $rofi_command -p "Uptime: $uptime" -dmenu -selected-row 0)" +case $chosen in + $shutdown) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + systemctl poweroff + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; + $reboot) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + systemctl reboot + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; + $lock) + if [[ -f /usr/bin/i3lock ]]; then + i3lock + elif [[ -f /usr/bin/betterlockscreen ]]; then + betterlockscreen -l + fi + ;; + $suspend) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + mpc -q pause + amixer set Master mute + systemctl suspend + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; + $logout) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then + openbox --exit + elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then + bspc quit + elif [[ "$DESKTOP_SESSION" == "i3" ]]; then + i3-msg exit + fi + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; +esac diff --git a/.config/polybar/unused/scripts/rofi/colors.rasi b/.config/polybar/unused/scripts/rofi/colors.rasi @@ -0,0 +1,10 @@ +/* colors */ + +* { + al: #1E2127; + bg: #1E2127; + bga: #282B31; + fg: #ABB2BF; + ac: #98C379; + se: #61AFEF; +} diff --git a/.config/polybar/scripts/rofi/confirm.rasi b/.config/polybar/unused/scripts/rofi/confirm.rasi diff --git a/.config/polybar/scripts/rofi/launcher.rasi b/.config/polybar/unused/scripts/rofi/launcher.rasi diff --git a/.config/polybar/scripts/rofi/message.rasi b/.config/polybar/unused/scripts/rofi/message.rasi diff --git a/.config/polybar/unused/scripts/rofi/networkmenu.rasi b/.config/polybar/unused/scripts/rofi/networkmenu.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "JetbrainsMono Nerd Font 20"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" + +window { + transparency: "real"; + background-color: @bg; + text-color: @fg; + border: 0px 0px 0px 0px; + border-color: @ac; + border-radius: 0px; + width: 400px; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0px 0px 0px 10px; + background-color: @bga; + text-color: @fg; +} + +textbox-prompt-colon { + padding: 0px; + background-color: @bga; + text-color: @ac; + expand: false; + str: ""; + font: "feather 12"; +} + +entry { + background-color: @al; + text-color: @fg; + placeholder-color: @fg; + expand: true; + horizontal-align: 0; + placeholder: "Search..."; + padding: 0px 0px 0px 5px; + blink: true; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @bga; + text-color: @fg; + expand: false; + border: 0px 0px 1px 0px; + border-radius: 0px; + border-color: @se; + margin: 0px; + padding: 10px; +} + +listview { + background-color: @al; + padding: 0px; + columns: 1; + lines: 8; + spacing: 5px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @al; + border: 0px; + border-radius: 0px; + border-color: @ac; + children: [ inputbar, listview ]; + spacing: 5px; + padding: 5px; +} + +element { + background-color: @al; + text-color: @fg; + orientation: horizontal; + border-radius: 0px; + padding: 8px 8px 8px -15px; +} + +element-icon { + size: 24px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0; + vertical-align: 0.5; + margin: 0px 2.5px 0px 2.5px; +} + +element selected { + background-color: @se; + text-color: @bg; + border: 0px 0px 0px 0px; + border-radius: 0px; + border-color: @ac; +} diff --git a/.config/polybar/unused/scripts/rofi/powermenu.rasi b/.config/polybar/unused/scripts/rofi/powermenu.rasi @@ -0,0 +1,132 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "JetbrainMono Nerd Font 12"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" +* { + al: #1E2127; + bg: #1E2127; + bga: #282B31; + fg: #ABB2BF; + ac: #98C379; + se: #61AFEF; +} + + +window { + transparency: "real"; + background-color: @bg; + text-color: @fg; + border: 0px 0px 0px 0px; + border-color: @ac; + border-radius: 6px; + width: 350px; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0px 0px 0px 10px; + background-color: @bga; + text-color: @fg; +} + +textbox-prompt-colon { + padding: 0px; + background-color: @bga; + text-color: @ac; + expand: false; + str: ""; + font: "feather 12"; +} + +entry { + background-color: @bg; + text-color: @fg; + placeholder-color: @bg; + expand: true; + horizontal-align: 0; + placeholder: "Search..."; + padding: 0px 0px 0px 5px; + blink: true; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @bga; + text-color: @fg; + expand: false; + border: 0px 0px 1px 0px; + border-radius: 0px; + border-color: @se; + margin: 0px; + padding: 10px; +} + +listview { + background-color: @al; + padding: 0px; + columns: 1; + lines: 5; + spacing: 5px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @al; + border: 0px; + border-radius: 0px; + border-color: @ac; + children: [ inputbar, listview ]; + spacing: 5px; + padding: 5px; +} + +element { + background-color: @al; + text-color: @fg; + orientation: horizontal; + border-radius: 0px; + padding: 8px 8px 8px -20px; +} + +element-icon { + size: 24px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0; + vertical-align: 0.5; + margin: 0px 2.5px 0px 2.5px; +} + +element selected { + background-color: @se; + text-color: @bg; + border: 0px 0px 0px 0px; + border-radius: 0px; + border-color: @ac; +} diff --git a/.config/polybar/scripts/rofi/styles.rasi b/.config/polybar/unused/scripts/rofi/styles.rasi diff --git a/.config/polybar/scripts/style-switch.sh b/.config/polybar/unused/scripts/style-switch.sh diff --git a/.config/polybar/scripts/styles.sh b/.config/polybar/unused/scripts/styles.sh diff --git a/.config/polybar/scripts/weather.py b/.config/polybar/unused/scripts/weather.py diff --git a/.config/polybar/unused/user_modules.ini b/.config/polybar/unused/user_modules.ini @@ -0,0 +1,423 @@ +;; ┌──────────────────────────────────────────────────────────────────────────────-----┐ +;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█░█░█▀▀░█▀▀░█▀▄░░░█▄█░█▀█░█▀▄░█░█░█░░░█▀▀░█▀▀ │ +;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░█░▀▀█░█▀▀░█▀▄░░░█░█░█░█░█░█░█░█░█░░░█▀▀░▀▀█ │ +;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀░▀░░░▀░▀░▀▀▀░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀ │ +;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│ +;; │░Modified By Raven @raven2cz░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│ +;; └──────────────────────────────────────────────────────────────────────────────-----┘ + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/launcher] +type = custom/text + +content =  +content-foreground = ${color.purple} + +; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND" +click-left = ~/.config/polybar/scripts/launcher.sh & +;;click-middle = ~/.config/polybar/scripts/launcher-full +click-right = ~/.config/polybar/scripts/style-switch.sh & + +; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND" +;;scroll-up = ~/.config/polybar/scripts/launcher.sh & +;;scroll-down = ~/.config/polybar/scripts/color-switch.sh & + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/sysmenu] +type = custom/text + +content =  +content-foreground = ${color.cyan} + +click-left = xfce4-session-logout & + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/color-switch] +type = custom/text + +content =  +content-foreground = ${color.red} + +click-left = ~/.config/polybar/scripts/style-switch.sh & + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/sep] +type = custom/text +content = | + +content-foreground = ${color.sep} + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/apps] +type = custom/text + +[module/term] +inherit = module/apps +content =  +content-foreground = ${color.blue-gray} +click-left = alacritty & +click-middle = urxvt & +click-right = xfce4-terminal & + +[module/files] +inherit = module/apps +content =  +content-foreground = ${color.blue} +click-left = dolphin & +click-right = thunar & + +[module/browser] +inherit = module/apps +content =  +content-foreground = ${color.orange} +click-left = firefox & +click-right = chromium & + +[module/settings] +inherit = module/apps +content =  +content-foreground = ${color.teal} +click-left = xfce4-settings-manager & +click-right = lxappearance & + +[module/screenshot] +inherit = module/apps +content =  +content-foreground = ${color.cyan} +click-left = spectacle & +click-right = xfce4-screenshooter & + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/powermenu] +type = custom/menu + +; If true, <label-toggle> will be to the left of the menu items (default). +; If false, it will be on the right of all the items. +expand-right = true + +; "menu-LEVEL-N" has the same properties as "label-NAME" with +; the additional "exec" property +; +; Available exec commands: +; menu-open-LEVEL +; menu-close +; Other commands will be executed using "/usr/bin/env sh -c $COMMAND" +menu-0-0 = " Reboot |" +menu-0-0-exec = menu-open-1 +menu-0-1 = " Shutdown " +menu-0-1-exec = menu-open-2 + +menu-1-0 = " Back |" +menu-1-0-exec = menu-open-0 +menu-1-1 = " Reboot " +menu-1-1-exec = systemctl reboot + +menu-2-0 = " Shutdown |" +menu-2-0-exec = systemctl poweroff +menu-2-1 = " Back " +menu-2-1-exec = menu-open-0 + +; Available tags: +; <label-toggle> (default) - gets replaced with <label-(open|close)> +; <menu> (default) +; Note that if you use <label-toggle> you must also include +; the definition for <label-open> + +format = <label-toggle><menu> + +label-open =  +label-open-foreground = ${color.cyan} +label-open-padding = 1 +label-close =  +label-close-foreground = ${color.red} +label-close-padding = 1 + +; Optional item separator +; Default: none +;label-separator = " | " +;label-separator-foreground = ${color.foreground} +;label-separator-background = ${color.background-alt} + +;;label-open-foreground = ${color.foreground} +;;label-close-foreground = ${color.background} + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/poweroptions] +type = custom/script +exec = echo "" +click-left = "bash ~/.config/polybar/scripts/powermenu.sh" +format-foreground = ${color.red} + + +[module/menu] +type = custom/menu + +; If true, <label-toggle> will be to the left of the menu items (default). +; If false, it will be on the right of all the items. +expand-right = true + +; "menu-LEVEL-N" has the same properties as "label-NAME" with +; the additional "exec" property +; +; Available exec commands: +; menu-open-LEVEL +; menu-close +; Other commands will be executed using "/usr/bin/env sh -c $COMMAND" +menu-0-0 ="  Menu | " +menu-0-0-exec = ~/.config/polybar/scripts/launcher.sh & + +menu-0-1 =" Files | " +menu-0-1-exec = thunar & + +menu-0-2 =" Terminal | " +menu-0-2-exec = termite & + +menu-0-3 =" Browser " +menu-0-3-exec = firefox & + +; Available tags: +; <label-toggle> (default) - gets replaced with <label-(open|close)> +; <menu> (default) +; Note that if you use <label-toggle> you must also include +; the definition for <label-open> + +format = <label-toggle><menu> + +label-open =  +label-open-foreground = ${color.yellow} +label-open-padding = 1 +label-close =  +label-close-foreground = ${color.red} +label-close-padding = 1 + +; Optional item separator +; Default: none +;label-separator = " | " + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/polywins] +type = custom/script +exec = ~/.config/polybar/scripts/polywins.sh 2>/dev/null +format = <label> +label = %output% +label-padding = 1 +tail = true + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/uptime] +;https://github.com/jaagr/polybar/wiki/User-contributed-modules#uptime +type = custom/script +exec = uptime | awk -F, '{sub(".*up ",x,$1);print $1}' +interval = 100 +label = %output% + +format-prefix = " " +format-prefix-foreground = ${color.blue-gray} +format-underline = + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/kernel] +type = custom/script +exec = uname -r +tail = false +interval = 1024 + +format-foreground = ${color.foreground} +format-background = ${color.background} +format-prefix = " " +format-prefix-foreground = ${color.blue} +format-underline = ${color.gray} + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/networkspeedup] +;https://github.com/jaagr/polybar/wiki/Module:-network +type = internal/network +;interface = wlp3s0 +;interface = enp14s0 +;interface = enp0s31f6 +;interface = enp38s0 +interface = eth0 +label-connected = "%upspeed:7%" +format-connected = <label-connected> +format-connected-prefix = " +" +format-connected-prefix-foreground = ${color.cyan} + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/networkspeeddown] +;https://github.com/jaagr/polybar/wiki/Module:-network +type = internal/network +;interface = wlp3s0 +;interface = enp14s0 +;interface = enp0s31f6 +;interface = enp38s0 +interface = eth0 +label-connected = "%downspeed:7%" +format-connected = <label-connected> +format-connected-prefix = " " +format-connected-prefix-foreground = ${color.cyan} + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/updates] +type = custom/script + +; Available tokens: +; %counter% +; Command to be executed (using "/usr/bin/env sh -c [command]") +exec = ~/.config/polybar/scripts/updates.sh + +; Conditional command that, if defined, needs to exit successfully +; before the main exec command is invoked. +; Default: "" +;;exec-if = "" + +; Will the script output continous content? +; Default: false +tail = true + +; Seconds to sleep between updates +; Default: 2 (0 if `tail = true`) +interval = 5 + +; Available tags: +; <output> - deprecated +; <label> (default) +format = <label> +format-prefix =  +format-prefix-foreground = ${color.yellow} + +; Available tokens: +; %output% +; Default: %output% +label = " %output%" + +; Available tokens: +; %counter% +; %pid% +; +; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c [command]" +click-left = exo-open --launch TerminalEmulator & +click-right = exo-open --launch TerminalEmulator & +;;double-click-left = echo double left %counter% +;;double-click-middle = echo double middle %counter% +;;double-click-right = echo double right %counter% + +; Available tokens: +; %counter% +; %pid% +; +; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c [command]" +;;scroll-up = echo scroll up %counter% +;;scroll-down = echo scroll down %counter% + +[module/pacman-updates] +type = custom/script +;exec = pacman -Qu | wc -l +exec = checkupdates | wc -l +interval = 1000 +label = Repo: %output% +format-foreground = ${color.foreground} +format-background = ${color.background} +format-prefix = " " +format-prefix-foreground = ${color.yellow} +;format-underline = ${color.yellow} + +[module/aur-updates] +type = custom/script +exec = cower -u | wc -l +interval = 1000 +label = Aur: %output% +format-foreground = ${color.foreground} +format-background = ${color.background} +format-prefix = " " +format-prefix-foreground = ${color.yellow} +format-underline = ${color.yellow} + +[module/updates-common] +type = custom/script +exec = ~/.config/polybar/scripts/check-all-updates.sh +interval = 600 +label = Updates: %output% +format-foreground = ${color.foreground} +format-background = ${color.background} +format-prefix = " " +format-prefix-foreground = ${color.yellow} + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/release] +type = custom/script +; exec = (lsb_release -d | awk {'print $2'} ;echo " "; lsb_release -r | awk {'print $2'}) | tr -d '\n' +interval = 6000 + +format-foreground = ${color.green} +format-background = ${color.background} +format-prefix = " " +; format-prefix-foreground = ${color.green} +; format-underline = ${color.green} + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/mpris-play-pause] +type = custom/ipc +hook-0 = echo "%{F${foreground}}  %{F-}" +hook-1 = echo "%{F${foreground}}  %{F-}" +initial = 2 +click-left = playerctl play-pause +scroll-up = playerctl previous +scroll-down = playerctl next + +[module/mpris] +type = custom/script +tail = true +format = <label> +exec = ~/.config/polybar/scripts/scroll_mpris_status.sh +click-left = playerctl play-pause +scroll-up = playerctl previous +scroll-down = playerctl next + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/weather] +type = custom/script +exec = python3 ~/.config/polybar/scripts/weather.py +interval = 600 +format-foreground = ${color.yellow} +cursor-click = python3 ~/.config/polybar/scripts/weather.py + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/xmenu] +type = custom/script +interval = 1200 +exec = echo " " +click-left = "sh ~/xmenu/xmenu.sh" +format-foreground = ${color.foreground} +format-background = ${color.background} + +[module/arch] +type = custom/script +exec = echo " " +click-left = "sh ~/xmenu/xmenu.sh" +format-foreground = ${color.blue} + +[module/time] +type = internal/date +interval = 1.0 +time = %k:%M +format = <label> +format-foreground = ${color.cyan} +label = %time% +label-font = 1 diff --git a/.config/polybar/user_modules.ini b/.config/polybar/user_modules.ini @@ -1,406 +0,0 @@ -;; ┌──────────────────────────────────────────────────────────────────────────────-----┐ -;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█░█░█▀▀░█▀▀░█▀▄░░░█▄█░█▀█░█▀▄░█░█░█░░░█▀▀░█▀▀ │ -;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░█░▀▀█░█▀▀░█▀▄░░░█░█░█░█░█░█░█░█░█░░░█▀▀░▀▀█ │ -;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀░▀░░░▀░▀░▀▀▀░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀ │ -;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│ -;; │░Modified By Raven @raven2cz░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│ -;; └──────────────────────────────────────────────────────────────────────────────-----┘ - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/launcher] -type = custom/text - -content =  -content-foreground = ${color.purple} - -; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND" -click-left = ~/.config/polybar/scripts/launcher.sh & -;;click-middle = ~/.config/polybar/scripts/launcher-full -click-right = ~/.config/polybar/scripts/style-switch.sh & - -; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND" -;;scroll-up = ~/.config/polybar/scripts/launcher.sh & -;;scroll-down = ~/.config/polybar/scripts/color-switch.sh & - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/sysmenu] -type = custom/text - -content =  -content-foreground = ${color.cyan} - -click-left = xfce4-session-logout & - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/color-switch] -type = custom/text - -content =  -content-foreground = ${color.red} - -click-left = ~/.config/polybar/scripts/style-switch.sh & - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/sep] -type = custom/text -content = | - -content-foreground = ${color.sep} - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/apps] -type = custom/text - -[module/term] -inherit = module/apps -content =  -content-foreground = ${color.blue-gray} -click-left = alacritty & -click-middle = urxvt & -click-right = xfce4-terminal & - -[module/files] -inherit = module/apps -content =  -content-foreground = ${color.blue} -click-left = dolphin & -click-right = thunar & - -[module/browser] -inherit = module/apps -content =  -content-foreground = ${color.orange} -click-left = firefox & -click-right = chromium & - -[module/settings] -inherit = module/apps -content =  -content-foreground = ${color.teal} -click-left = xfce4-settings-manager & -click-right = lxappearance & - -[module/screenshot] -inherit = module/apps -content =  -content-foreground = ${color.cyan} -click-left = spectacle & -click-right = xfce4-screenshooter & - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/powermenu] -type = custom/menu - -; If true, <label-toggle> will be to the left of the menu items (default). -; If false, it will be on the right of all the items. -expand-right = true - -; "menu-LEVEL-N" has the same properties as "label-NAME" with -; the additional "exec" property -; -; Available exec commands: -; menu-open-LEVEL -; menu-close -; Other commands will be executed using "/usr/bin/env sh -c $COMMAND" -menu-0-0 = " Reboot |" -menu-0-0-exec = menu-open-1 -menu-0-1 = " Shutdown " -menu-0-1-exec = menu-open-2 - -menu-1-0 = " Back |" -menu-1-0-exec = menu-open-0 -menu-1-1 = " Reboot " -menu-1-1-exec = systemctl reboot - -menu-2-0 = " Shutdown |" -menu-2-0-exec = systemctl poweroff -menu-2-1 = " Back " -menu-2-1-exec = menu-open-0 - -; Available tags: -; <label-toggle> (default) - gets replaced with <label-(open|close)> -; <menu> (default) -; Note that if you use <label-toggle> you must also include -; the definition for <label-open> - -format = <label-toggle><menu> - -label-open =  -label-open-foreground = ${color.cyan} -label-open-padding = 1 -label-close =  -label-close-foreground = ${color.red} -label-close-padding = 1 - -; Optional item separator -; Default: none -;label-separator = " | " -;label-separator-foreground = ${color.foreground} -;label-separator-background = ${color.background-alt} - -;;label-open-foreground = ${color.foreground} -;;label-close-foreground = ${color.background} - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/menu] -type = custom/menu - -; If true, <label-toggle> will be to the left of the menu items (default). -; If false, it will be on the right of all the items. -expand-right = true - -; "menu-LEVEL-N" has the same properties as "label-NAME" with -; the additional "exec" property -; -; Available exec commands: -; menu-open-LEVEL -; menu-close -; Other commands will be executed using "/usr/bin/env sh -c $COMMAND" -menu-0-0 ="  Menu | " -menu-0-0-exec = ~/.config/polybar/scripts/launcher.sh & - -menu-0-1 =" Files | " -menu-0-1-exec = thunar & - -menu-0-2 =" Terminal | " -menu-0-2-exec = termite & - -menu-0-3 =" Browser " -menu-0-3-exec = firefox & - -; Available tags: -; <label-toggle> (default) - gets replaced with <label-(open|close)> -; <menu> (default) -; Note that if you use <label-toggle> you must also include -; the definition for <label-open> - -format = <label-toggle><menu> - -label-open =  -label-open-foreground = ${color.yellow} -label-open-padding = 1 -label-close =  -label-close-foreground = ${color.red} -label-close-padding = 1 - -; Optional item separator -; Default: none -;label-separator = " | " - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/polywins] -type = custom/script -exec = ~/.config/polybar/scripts/polywins.sh 2>/dev/null -format = <label> -label = %output% -label-padding = 1 -tail = true - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/uptime] -;https://github.com/jaagr/polybar/wiki/User-contributed-modules#uptime -type = custom/script -exec = uptime | awk -F, '{sub(".*up ",x,$1);print $1}' -interval = 100 -label = %output% - -format-prefix = " " -format-prefix-foreground = ${color.blue-gray} -format-underline = - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/kernel] -type = custom/script -exec = uname -r -tail = false -interval = 1024 - -format-foreground = ${color.foreground} -format-background = ${color.background} -format-prefix = " " -format-prefix-foreground = ${color.blue} -format-underline = ${color.gray} - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/networkspeedup] -;https://github.com/jaagr/polybar/wiki/Module:-network -type = internal/network -;interface = wlp3s0 -;interface = enp14s0 -;interface = enp0s31f6 -;interface = enp38s0 -interface = eth0 -label-connected = "%upspeed:7%" -format-connected = <label-connected> -format-connected-prefix = " +" -format-connected-prefix-foreground = ${color.cyan} - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/networkspeeddown] -;https://github.com/jaagr/polybar/wiki/Module:-network -type = internal/network -;interface = wlp3s0 -;interface = enp14s0 -;interface = enp0s31f6 -;interface = enp38s0 -interface = eth0 -label-connected = "%downspeed:7%" -format-connected = <label-connected> -format-connected-prefix = " " -format-connected-prefix-foreground = ${color.cyan} - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/updates] -type = custom/script - -; Available tokens: -; %counter% -; Command to be executed (using "/usr/bin/env sh -c [command]") -exec = ~/.config/polybar/scripts/updates.sh - -; Conditional command that, if defined, needs to exit successfully -; before the main exec command is invoked. -; Default: "" -;;exec-if = "" - -; Will the script output continous content? -; Default: false -tail = true - -; Seconds to sleep between updates -; Default: 2 (0 if `tail = true`) -interval = 5 - -; Available tags: -; <output> - deprecated -; <label> (default) -format = <label> -format-prefix =  -format-prefix-foreground = ${color.yellow} - -; Available tokens: -; %output% -; Default: %output% -label = " %output%" - -; Available tokens: -; %counter% -; %pid% -; -; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c [command]" -click-left = exo-open --launch TerminalEmulator & -click-right = exo-open --launch TerminalEmulator & -;;double-click-left = echo double left %counter% -;;double-click-middle = echo double middle %counter% -;;double-click-right = echo double right %counter% - -; Available tokens: -; %counter% -; %pid% -; -; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c [command]" -;;scroll-up = echo scroll up %counter% -;;scroll-down = echo scroll down %counter% - -[module/pacman-updates] -type = custom/script -;exec = pacman -Qu | wc -l -exec = checkupdates | wc -l -interval = 1000 -label = Repo: %output% -format-foreground = ${color.foreground} -format-background = ${color.background} -format-prefix = " " -format-prefix-foreground = ${color.yellow} -;format-underline = ${color.yellow} - -[module/aur-updates] -type = custom/script -exec = cower -u | wc -l -interval = 1000 -label = Aur: %output% -format-foreground = ${color.foreground} -format-background = ${color.background} -format-prefix = " " -format-prefix-foreground = ${color.yellow} -format-underline = ${color.yellow} - -[module/updates-common] -type = custom/script -exec = ~/.config/polybar/scripts/check-all-updates.sh -interval = 600 -label = Updates: %output% -format-foreground = ${color.foreground} -format-background = ${color.background} -format-prefix = " " -format-prefix-foreground = ${color.yellow} - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/release] -type = custom/script -; exec = (lsb_release -d | awk {'print $2'} ;echo " "; lsb_release -r | awk {'print $2'}) | tr -d '\n' -interval = 6000 - -format-foreground = ${color.foreground} -format-background = ${color.background} -format-prefix = " " -format-prefix-foreground = ${color.green} -format-underline = ${color.green} - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/mpris-play-pause] -type = custom/ipc -hook-0 = echo "%{F${foreground}}  %{F-}" -hook-1 = echo "%{F${foreground}}  %{F-}" -initial = 2 -click-left = playerctl play-pause -scroll-up = playerctl previous -scroll-down = playerctl next - -[module/mpris] -type = custom/script -tail = true -format = <label> -exec = ~/.config/polybar/scripts/scroll_mpris_status.sh -click-left = playerctl play-pause -scroll-up = playerctl previous -scroll-down = playerctl next - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/weather] -type = custom/script -exec = python3 ~/.config/polybar/scripts/weather.py -interval = 600 -format-foreground = ${color.yellow} -cursor-click = python3 ~/.config/polybar/scripts/weather.py - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/xmenu] -type = custom/script -interval = 1200 -exec = echo " " -click-left = "sh ~/xmenu/xmenu.sh" -format-foreground = ${color.foreground} -format-background = ${color.background} - -[module/arch] -type = custom/script -exec = echo " " -format-foreground = ${color.blue}