Advertisement
Guest User

Untitled

a guest
Aug 26th, 2024
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 17.30 KB | None | 0 0
  1. ;; ┌────────────────────────────────────────────────────────────┐
  2. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█▀█░█▀▀░▀█▀░█▀▀│
  3. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░█░█▀▀░░█░░█░█│
  4. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀░▀░▀░░░▀▀▀░▀▀▀│
  5. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│
  6. ;; └────────────────────────────────────────────────────────────┘
  7.  
  8. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  9.  
  10. ;; Global WM Settings
  11.  
  12. [global/wm]
  13. ; Adjust the _NET_WM_STRUT_PARTIAL top value
  14. ; Used for top aligned bars
  15. margin-bottom = 0
  16.  
  17. ; Adjust the _NET_WM_STRUT_PARTIAL bottom value
  18. ; Used for bottom aligned bars
  19. margin-top = 0
  20.  
  21. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  22.  
  23. ;; Bar Settings
  24.  
  25. [bar/main]
  26. ; Use either of the following command to list available outputs:
  27. ; If unspecified, the application will pick the first one it finds.
  28. ; $ polybar -m | cut -d ':' -f 1
  29. ; $ xrandr -q | grep " connected" | cut -d ' ' -f1
  30. monitor =
  31.  
  32. ; Use the specified monitor as a fallback if the main one is not found.
  33. monitor-fallback =
  34.  
  35. ; Require the monitor to be in connected state
  36. ; XRandR sometimes reports my monitor as being disconnected (when in use)
  37. monitor-strict = false
  38.  
  39. ; Tell the Window Manager not to configure the window.
  40. ; Use this to detach the bar if your WM is locking its size/position.
  41. override-redirect = false
  42.  
  43. ; Put the bar at the bottom of the screen
  44. bottom = false
  45.  
  46. ; Prefer fixed center position for the `modules-center` block
  47. ; When false, the center position will be based on the size of the other blocks.
  48. fixed-center = true
  49.  
  50. ; Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%),
  51. ; the percentage can optionally be extended with a pixel offset like so:
  52. ; 50%:-10, this will result in a width or height of 50% minus 10 pixels
  53. width = 100%
  54. height = 30
  55.  
  56. ; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
  57. ; the percentage can optionally be extended with a pixel offset like so:
  58. ; 50%:-10, this will result in an offset in the x or y direction
  59. ; of 50% minus 10 pixels
  60. offset-x = 0
  61. offset-y = 0
  62.  
  63. ; Background ARGB color (e.g. #f00, #ff992a, #ddff1023)
  64. background = ${color.bg}
  65.  
  66. ; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023)
  67. foreground = ${color.fg}
  68.  
  69. ; Background gradient (vertical steps)
  70. ;   background-[0-9]+ = #aarrggbb
  71. ;;background-0 =
  72.  
  73. ; Value used for drawing rounded corners
  74. ; Note: This shouldn't be used together with border-size because the border
  75. ; doesn't get rounded
  76. ; Individual top/bottom values can be defined using:
  77. ;   radius-{top,bottom}
  78. radius-top = 0.0
  79. radius-bottom = 0.0
  80.  
  81. ; Under-/overline pixel size and argb color
  82. ; Individual values can be defined using:
  83. ;   {overline,underline}-size
  84. ;   {overline,underline}-color
  85. ;;overline-size = 0
  86. ;;overline-color = ${color.ac}
  87.  
  88. ; Values applied to all borders
  89. ; Individual side values can be defined using:
  90. ;   border-{left,top,right,bottom}-size
  91. ;   border-{left,top,right,bottom}-color
  92. ; The top and bottom borders are added to the bar height, so the effective
  93. ; window height is:
  94. ;   height + border-top-size + border-bottom-size
  95. ; Meanwhile the effective window width is defined entirely by the width key and
  96. ; the border is placed withing this area. So you effectively only have the
  97. ; following horizontal space on the bar:
  98. ;   width - border-right-size - border-left-size
  99. ;;border-size = 2
  100. ;;border-color = ${color.ac}
  101.  
  102. ; Number of spaces to add at the beginning/end of the bar
  103. ; Individual side values can be defined using:
  104. ;   padding-{left,right}
  105. padding = 3
  106.  
  107. ; Number of spaces to add before/after each module
  108. ; Individual side values can be defined using:
  109. ;   module-margin-{left,right}
  110. module-margin-left = 3
  111. module-margin-right = 3
  112.  
  113. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  114.  
  115. ; Fonts are defined using <font-name>;<vertical-offset>
  116. ; Font names are specified using a fontconfig pattern.
  117. ;   font-0 = NotoSans-Regular:size=8;2
  118. ;   font-1 = MaterialIcons:size=10
  119. ;   font-2 = Termsynu:size=8;-1
  120. ;   font-3 = FontAwesome:size=10
  121. ; See the Fonts wiki page for more details
  122.  
  123. font-0 = "Noto Sans:size=9:weight:bold;3"
  124. font-1 = "Iosevka Nerd Font:size=12;3"
  125.  
  126. ; Modules are added to one of the available blocks
  127. ;   modules-left = cpu ram
  128. ;   modules-center = xwindow xbacklight
  129. ;   modules-right = ipc clock
  130.  
  131. modules-left = activity
  132. modules-center = date
  133. modules-right = style battery alsa network sysmenu
  134.  
  135. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  136.  
  137. ; The separator will be inserted between the output of each module
  138. separator =
  139.  
  140. ; Opacity value between 0.0 and 1.0 used on fade in/out
  141. dim-value = 1.0
  142.  
  143. ; Value to be used to set the WM_NAME atom
  144. ; If the value is empty or undefined, the atom value
  145. ; will be created from the following template: polybar-[BAR]_[MONITOR]
  146. ; NOTE: The placeholders are not available for custom values
  147. wm-name =
  148.  
  149. ; Locale used to localize various module data (e.g. date)
  150. ; Expects a valid libc locale, for example: sv_SE.UTF-8
  151. locale =
  152.  
  153. ; Position of the system tray window
  154. ; If empty or undefined, tray support will be disabled
  155. ; NOTE: A center aligned tray will cover center aligned modules
  156. ;
  157. ; Available positions:
  158. ;   left
  159. ;   center
  160. ;   right
  161. ;   none
  162. tray-position = none
  163.  
  164. ; If true, the bar will not shift its
  165. ; contents when the tray changes
  166. tray-detached = false
  167.  
  168. ; Tray icon max size
  169. tray-maxsize = 16
  170.  
  171. ; Background color for the tray container
  172. ; ARGB color (e.g. #f00, #ff992a, #ddff1023)
  173. ; By default the tray container will use the bar
  174. ; background color.
  175. tray-background = ${color.background}
  176.  
  177. ; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
  178. tray-offset-x = 0
  179. tray-offset-y = 0
  180.  
  181. ; Pad the sides of each tray icon
  182. tray-padding = 0
  183.  
  184. ; Scale factor for tray clients
  185. tray-scale = 1.0
  186.  
  187. ; Restack the bar window and put it above the
  188. ; selected window manager's root
  189. ;
  190. ; Fixes the issue where the bar is being drawn
  191. ; on top of fullscreen window's
  192. ;
  193. ; Currently supported WM's:
  194. ;   bspwm
  195. ;   i3 (requires: `override-redirect = true`)
  196. ;;wm-restack =
  197.  
  198. ; Set a DPI values used when rendering text
  199. ; This only affects scalable fonts
  200. ; dpi =
  201.  
  202. ; Enable support for inter-process messaging
  203. ; See the Messaging wiki page for more details.
  204. enable-ipc = true
  205.  
  206. ; Fallback click handlers that will be called if
  207. ; there's no matching module handler found.
  208. click-left =
  209. click-middle =
  210. click-right =
  211. scroll-up =
  212. scroll-down =
  213. double-click-left =
  214. double-click-middle =
  215. double-click-right =
  216.  
  217. ; Requires polybar to be built with xcursor support (xcb-util-cursor)
  218. ; Possible values are:
  219. ; - default   : The default pointer as before, can also be an empty string (default)
  220. ; - pointer   : Typically in the form of a hand
  221. ; - ns-resize : Up and down arrows, can be used to indicate scrolling
  222. cursor-click =
  223. cursor-scroll =
  224.  
  225. ;; WM Workspace Specific
  226.  
  227. ; bspwm
  228. ;;scroll-up = bspwm-desknext
  229. ;;scroll-down = bspwm-deskprev
  230. ;;scroll-up = bspc desktop -f prev.local
  231. ;;scroll-down = bspc desktop -f next.local
  232.  
  233. ;i3
  234. ;;scroll-up = i3wm-wsnext
  235. ;;scroll-down = i3wm-wsprev
  236. ;;scroll-up = i3-msg workspace next_on_output
  237. ;;scroll-down = i3-msg workspace prev_on_output
  238.  
  239. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  240.  
  241. ;; Application Settings
  242.  
  243. [settings]
  244. ; The throttle settings lets the eventloop swallow up til X events
  245. ; if they happen within Y millisecond after first event was received.
  246. ; This is done to prevent flood of update event.
  247. ;
  248. ; For example if 5 modules emit an update event at the same time, we really
  249. ; just care about the last one. But if we wait too long for events to swallow
  250. ; the bar would appear sluggish so we continue if timeout
  251. ; expires or limit is reached.
  252. throttle-output = 5
  253. throttle-output-for = 10
  254.  
  255. ; Time in milliseconds that the input handler will wait between processing events
  256. ;throttle-input-for = 30
  257.  
  258. ; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events
  259. screenchange-reload = false
  260.  
  261. ; Compositing operators
  262. ; @see: https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t
  263. compositing-background = source
  264. compositing-foreground = over
  265. compositing-overline = over
  266. compositing-underline = over
  267. compositing-border = over
  268.  
  269. ; Define fallback values used by all module formats
  270. ;format-foreground =
  271. ;format-background =
  272. ;format-underline =
  273. ;format-overline =
  274. ;format-spacing =
  275. ;format-padding =
  276. ;format-margin =
  277. ;format-offset =
  278.  
  279. ; Enables pseudo-transparency for the bar
  280. ; If set to true the bar can be transparent without a compositor.
  281. pseudo-transparency = false
  282.  
  283. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  284.  
  285. ;; ┌────────────────────────────────────────────────────────────┐
  286. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│
  287. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│
  288. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│
  289. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│
  290. ;; └────────────────────────────────────────────────────────────┘
  291. ;;
  292. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  293.  
  294. [color]
  295.  
  296. ;; Active Colors
  297. bg = #000000
  298. fg = #EAEAEA
  299. fg-alt = #9C9C9C
  300.  
  301. trans = #00000000
  302. white = #FFFFFF
  303. black = #000000
  304.  
  305. ;; Material Colors
  306.  
  307. red = #e53935
  308. pink = #d81b60
  309. purple = #8e24aa
  310. deep-purple = #5e35b1
  311. indigo = #3949ab
  312. blue = #1e88e5
  313. light-blue = #039be5
  314. cyan = #00acc1
  315. teal = #00897b
  316. green = #43a047
  317. light-green = #7cb342
  318. lime = #c0ca33
  319. yellow = #fdd835
  320. amber = #ffb300
  321. orange = #fb8c00
  322. deep-orange = #f4511e
  323. brown = #6d4c41
  324. grey = #757575
  325. blue-gray = #546e7a
  326.  
  327. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  328.  
  329. ;; ┌────────────────────────────────────────────────────────────────┐
  330. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▄█░█▀█░█▀▄░█░█░█░░░█▀▀░█▀▀│
  331. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░█░█░█░█░█░█░█░█░░░█▀▀░▀▀█│
  332. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀░▀░▀▀▀░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀│
  333. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│
  334. ;; └────────────────────────────────────────────────────────────────┘
  335. ;;
  336. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  337.  
  338. [module/alsa]
  339. type = internal/alsa
  340.  
  341. ; You can find the different card numbers in `/proc/asound/cards`
  342. ;;master-soundcard = default
  343. ;;speaker-soundcard = default
  344. ;;headphone-soundcard = default
  345.  
  346. ; Default: Master
  347. ;;master-mixer = Master
  348.  
  349. ; Optionally define speaker and headphone mixers
  350. ; Default: none
  351. ;;speaker-mixer = Speaker
  352. ; Default: none
  353. ;;headphone-mixer = Headphone
  354.  
  355. ; Default: 5
  356. ;;interval = 5
  357.  
  358. ; Available tags:
  359. ;   <label-volume> (default)
  360. ;   <ramp-volume>
  361. ;   <bar-volume>
  362. format-volume = <ramp-volume>
  363.  
  364. ; Available tags:
  365. ;   <label-muted> (default)
  366. ;   <ramp-volume>
  367. ;   <bar-volume>
  368. ;format-muted = <label-muted>
  369.  
  370. ; Available tokens:
  371. ;   %percentage% (default)
  372. label-volume = %percentage%%
  373.  
  374. ; Available tokens:
  375. ;   %percentage% (default
  376. label-muted = ﱝ
  377. label-muted-foreground = ${color.fg-alt}
  378.  
  379. ramp-volume-0 = 
  380. ramp-volume-1 = 
  381. ramp-volume-2 = 
  382. ramp-volume-3 = 
  383.  
  384. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  385.  
  386. [module/battery]
  387. type = internal/battery
  388.  
  389. full-at = 99
  390.  
  391. ; $ ls -1 /sys/class/power_supply/
  392. battery = BAT1
  393. adapter = ACAD
  394.  
  395. poll-interval = 2
  396. time-format = %H:%M
  397.  
  398. ; Available tags:
  399. ;   <label-charging> (default)
  400. ;   <bar-capacity>
  401. ;   <ramp-capacity>
  402. ;   <animation-charging>
  403. format-charging = <animation-charging>
  404.  
  405. ; Available tags:
  406. ;   <label-discharging> (default)
  407. ;   <bar-capacity>
  408. ;   <ramp-capacity>
  409. ;   <animation-discharging>
  410. format-discharging = <ramp-capacity>
  411.  
  412. ; Available tags:
  413. ;   <label-full> (default)
  414. ;   <bar-capacity>
  415. ;   <ramp-capacity>
  416. ;format-full = <ramp-capacity> <label-full>
  417.  
  418. ; Available tokens:
  419. ;   %percentage% (default)
  420. ;   %time%
  421. ;   %consumption% (shows current charge rate in watts)
  422. label-charging = %percentage%%
  423.  
  424. ; Available tokens:
  425. ;   %percentage% (default)
  426. ;   %time%
  427. ;   %consumption% (shows current discharge rate in watts)
  428. label-discharging = %percentage%%
  429.  
  430. ; Available tokens:
  431. ;   %percentage% (default)
  432. ;label-full = Fully Charged
  433. label-full = 
  434. label-full-foreground = ${color.green}
  435.  
  436. ramp-capacity-0 = 
  437. ramp-capacity-1 = 
  438. ramp-capacity-2 = 
  439. ramp-capacity-3 = 
  440. ramp-capacity-4 = 
  441. ramp-capacity-5 = 
  442. ramp-capacity-6 = 
  443. ramp-capacity-7 = 
  444. ramp-capacity-8 = 
  445. ramp-capacity-9 = 
  446.  
  447. animation-charging-0 = 
  448. animation-charging-1 = 
  449. animation-charging-2 = 
  450. animation-charging-3 = 
  451. animation-charging-4 = 
  452. animation-charging-5 = 
  453. animation-charging-6 = 
  454.  
  455. ; Framerate in milliseconds
  456. animation-charging-framerate = 750
  457.  
  458. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  459.  
  460. [module/date]
  461. type = internal/date
  462.  
  463. interval = 1.0
  464.  
  465. time = %a   %I:%M %p
  466. time-alt = %B %d, %Y
  467.  
  468. format = <label>
  469. label = %time%
  470.  
  471. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  472.  
  473. [module/network]
  474. type = internal/network
  475.  
  476. interface = wlan0
  477. interval = 1.0
  478.  
  479. ;ping-interval = 3
  480. ;;udspeed-minwidth = 5
  481. accumulate-stats = true
  482. unknown-as-up = true
  483.  
  484. ; Available tags:
  485. ;   <label-connected> (default)
  486. ;   <ramp-signal>
  487. format-connected = <label-connected>
  488.  
  489. ; Available tags:
  490. ;   <label-disconnected> (default)
  491. format-disconnected = <label-disconnected>
  492.  
  493. ; Available tags:
  494. ;   <label-connected> (default)
  495. ;   <label-packetloss>
  496. ;   <animation-packetloss>
  497. ;;format-packetloss = <animation-packetloss> <label-connected>
  498.  
  499. ; Available tokens:
  500. ;   %ifname%    [wireless+wired]
  501. ;   %local_ip%  [wireless+wired]
  502. ;   %local_ip6% [wireless+wired]
  503. ;   %essid%     [wireless]
  504. ;   %signal%    [wireless]
  505. ;   %upspeed%   [wireless+wired]
  506. ;   %downspeed% [wireless+wired]
  507. ;   %linkspeed% [wired]
  508. ; Default: %ifname% %local_ip%
  509. label-connected = "%{A1:networkmanager_dmenu &:}直%{A}"
  510.  
  511. ; Available tokens:
  512. ;   %ifname%    [wireless+wired]
  513. ; Default: (none)
  514. label-disconnected = "%{A1:networkmanager_dmenu &:}睊%{A}"
  515. label-disconnected-foreground = ${color.fg-alt}
  516.  
  517. ; Available tokens:
  518. ;   %ifname%    [wireless+wired]
  519. ;   %local_ip%  [wireless+wired]
  520. ;   %local_ip6% [wireless+wired]
  521. ;   %essid%     [wireless]
  522. ;   %signal%    [wireless]
  523. ;   %upspeed%   [wireless+wired]
  524. ;   %downspeed% [wireless+wired]
  525. ;   %linkspeed% [wired]
  526. ; Default: (none)
  527. ;label-packetloss = %essid%
  528. ;label-packetloss-foreground = #eefafafa
  529.  
  530. ramp-signal-0 = 直
  531. ramp-signal-1 = 直
  532. ramp-signal-2 = 直
  533. ramp-signal-3 = 直
  534. ramp-signal-4 = 直
  535.  
  536. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  537.  
  538. [module/activity]
  539. type = custom/text
  540.  
  541. content = Activities
  542. ;;content-background = ${color.bg}
  543. content-foreground = ${color.fg}
  544. ;;content-padding = 4
  545.  
  546. click-left = ~/.config/polybar/panels/scripts/launcher.sh --gnome
  547. click-right = ~/.config/polybar/panels/scripts/launcher.sh --gnome
  548.  
  549. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  550.  
  551. [module/sysmenu]
  552. type = custom/text
  553.  
  554. content = 襤
  555. ;;content-background = ${color.bg}
  556. content-foreground = ${color.fg}
  557. ;;content-padding = 4
  558.  
  559. click-left = ~/.config/polybar/panels/scripts/powermenu.sh --gnome
  560. click-right = ~/.config/polybar/panels/scripts/powermenu.sh --gnome
  561.  
  562. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  563.  
  564. [module/style]
  565. type = custom/text
  566. content = פֿ
  567.  
  568. click-left = ~/.config/polybar/panels/scripts/style-switch.sh --gnome
  569. click-right = ~/.config/polybar/panels/scripts/style-switch.sh --gnome
  570.  
  571. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement