You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

311 lines
8.3 KiB

5 years ago
  1. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  2. ;;
  3. ;; __ __ __ ___ __ __
  4. ;; / / / /_______ _____ / |/ /___ ____/ /_ __/ /__ _____
  5. ;; / / / / ___/ _ \/ ___/ / /|_/ / __ \/ __ / / / / / _ \/ ___/
  6. ;; / /_/ (__ ) __/ / / / / / /_/ / /_/ / /_/ / / __(__ )
  7. ;; \____/____/\___/_/ /_/ /_/\____/\__,_/\__,_/_/\___/____/
  8. ;;
  9. ;; Created By Aditya Shakya @adi1090x
  10. ;;
  11. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  12. [module/checknetwork]
  13. type = custom/script
  14. ; Available tokens:
  15. ; %counter%
  16. ; Command to be executed (using "/usr/bin/env sh -c [command]")
  17. exec = ~/.config/polybar/scripts/check-network
  18. ; Conditional command that, if defined, needs to exit successfully
  19. ; before the main exec command is invoked.
  20. ; Default: ""
  21. ;;exec-if = ""
  22. ; Will the script output continous content?
  23. ; Default: false
  24. tail = true
  25. ; Seconds to sleep between updates
  26. ; Default: 2 (0 if `tail = true`)
  27. interval = 5
  28. ; Available tags:
  29. ; <output> - deprecated
  30. ; <label> (default)
  31. ;;format = <label>
  32. ;;format-background = #999
  33. ;;format-foreground = #000
  34. ;;format-padding = 4
  35. ; Available tokens:
  36. ; %output%
  37. ; Default: %output%
  38. ;;label = %output:0:15:...%
  39. ; Available tokens:
  40. ; %counter%
  41. ; %pid%
  42. ;
  43. ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c [command]"
  44. click-left = networkmanager_dmenu &
  45. click-middle = networkmanager_dmenu &
  46. click-right = networkmanager_dmenu &
  47. ;;double-click-left = echo double left %counter%
  48. ;;double-click-middle = echo double middle %counter%
  49. ;;double-click-right = echo double right %counter%
  50. ; Available tokens:
  51. ; %counter%
  52. ; %pid%
  53. ;
  54. ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c [command]"
  55. ;;scroll-up = echo scroll up %counter%
  56. ;;scroll-down = echo scroll down %counter%
  57. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  58. ;[module/updates]
  59. ;type = custom/script
  60. ; Available tokens:
  61. ; %counter%
  62. ; Command to be executed (using "/usr/bin/env sh -c [command]")
  63. ;exec = ~/.config/polybar/scripts/updates.sh
  64. ; Conditional command that, if defined, needs to exit successfully
  65. ; before the main exec command is invoked.
  66. ; Default: ""
  67. ;;exec-if = ""
  68. ; Will the script output continous content?
  69. ; Default: false
  70. ;tail = true
  71. ; Seconds to sleep between updates
  72. ; Default: 2 (0 if `tail = true`)
  73. ;interval = 5
  74. ; Available tags:
  75. ; <output> - deprecated
  76. ; <label> (default)
  77. ;;format = <label>
  78. ;;format-background = #999
  79. ;;format-foreground = #000
  80. ;;format-padding = 4
  81. ; Available tokens:
  82. ; %output%
  83. ; Default: %output%
  84. ;;label = %output:0:15:...%
  85. ; Available tokens:
  86. ; %counter%
  87. ; %pid%
  88. ;
  89. ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c [command]"
  90. ;click-left = ~/.config/polybar/scripts/lupdates &
  91. ;;click-middle = ~/.config/polybar/scripts/lupdates &
  92. ;;click-right = ~/.config/polybar/scripts/lupdates &
  93. ;;double-click-left = echo double left %counter%
  94. ;;double-click-middle = echo double middle %counter%
  95. ;;double-click-right = echo double right %counter%
  96. ; Available tokens:
  97. ; %counter%
  98. ; %pid%
  99. ;
  100. ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c [command]"
  101. ;;scroll-up = echo scroll up %counter%
  102. ;;scroll-down = echo scroll down %counter%
  103. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  104. [module/window_switch]
  105. type = custom/text
  106. content = Switch
  107. ; "content" has the same properties as "format-NAME"
  108. ;;content-background = #000
  109. ;;content-foreground = #fff
  110. ;;content-padding = 4
  111. ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND"
  112. click-left = skippy-xd
  113. click-middle = skippy-xd
  114. click-right = ~/.config/polybar/scripts/windows
  115. ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND"
  116. ;;scroll-up = skippy-xd
  117. ;;scroll-down = skippy-xd
  118. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  119. [module/launcher]
  120. type = custom/text
  121. content = L
  122. ; "content" has the same properties as "format-NAME"
  123. content-background = ${color.accent}
  124. content-foreground = ${color.modulefg}
  125. content-padding = 3
  126. ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND"
  127. click-left = ~/.config/polybar/scripts/launcher
  128. ;;click-middle = ~/.config/polybar/scripts/launcher-full
  129. click-right = ~/.config/polybar/scripts/launcher-alt
  130. ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND"
  131. ;;scroll-up = ~/.config/polybar/scripts/launcher-full
  132. scroll-down = ~/.config/polybar/scripts/launcher-full
  133. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  134. [module/sysmenu]
  135. type = custom/text
  136. content = SM
  137. ; "content" has the same properties as "format-NAME"
  138. content-background = ${color.accent}
  139. content-foreground = ${color.modulefg}
  140. content-padding = 3
  141. ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND"
  142. click-left = ~/.config/polybar/scripts/powermenu
  143. ;;click-middle = ~/.config/polybar/scripts/powermenu
  144. click-right = ~/.config/polybar/scripts/powermenu-alt
  145. ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND"
  146. ;;scroll-up = ~/.config/polybar/scripts/powermenu
  147. ;;scroll-down = ~/.config/polybar/scripts/powermenu
  148. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  149. [module/powermenu]
  150. type = custom/menu
  151. ; If true, <label-toggle> will be to the left of the menu items (default).
  152. ; If false, it will be on the right of all the items.
  153. expand-right = true
  154. ; "menu-LEVEL-N" has the same properties as "label-NAME" with
  155. ; the additional "exec" property
  156. ;
  157. ; Available exec commands:
  158. ; menu-open-LEVEL
  159. ; menu-close
  160. ; Other commands will be executed using "/usr/bin/env sh -c $COMMAND"
  161. menu-0-0 = reboot
  162. menu-0-0-exec = menu-open-1
  163. menu-0-1 = shutdown
  164. menu-0-1-exec = menu-open-2
  165. menu-1-0 = back
  166. menu-1-0-exec = menu-open-0
  167. menu-1-1 = reboot
  168. menu-1-1-exec = systemctl reboot
  169. menu-2-0 = shutdown
  170. menu-2-0-exec = systemctl poweroff
  171. menu-2-1 = back
  172. menu-2-1-exec = menu-open-0
  173. ; Available tags:
  174. ; <label-toggle> (default) - gets replaced with <label-(open|close)>
  175. ; <menu> (default)
  176. ; Note that if you use <label-toggle> you must also include
  177. ; the definition for <label-open>
  178. ;;format = <label-toggle> <menu>
  179. ;;format-prefix = ${menu.icon-menu}
  180. format-spacing = 1
  181. label-open = O
  182. label-close = C
  183. ; Optional item separator
  184. ; Default: none
  185. label-separator = |
  186. label-open-foreground = ${color.accent}
  187. label-close-foreground = ${color.accent}
  188. label-separator-foreground = ${color.accent}
  189. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  190. [module/menu]
  191. type = custom/menu
  192. ; If true, <label-toggle> will be to the left of the menu items (default).
  193. ; If false, it will be on the right of all the items.
  194. expand-right = true
  195. ; "menu-LEVEL-N" has the same properties as "label-NAME" with
  196. ; the additional "exec" property
  197. ;
  198. ; Available exec commands:
  199. ; menu-open-LEVEL
  200. ; menu-close
  201. ; Other commands will be executed using "/usr/bin/env sh -c $COMMAND"
  202. menu-0-0 =Menu
  203. menu-0-0-exec = ~/.config/polybar/scripts/launcher &
  204. menu-0-1 =Files
  205. menu-0-1-exec = thunar &
  206. menu-0-2 =Terminal
  207. menu-0-2-exec = termite &
  208. menu-0-3 =Browser
  209. menu-0-3-exec = firefox &
  210. ; Available tags:
  211. ; <label-toggle> (default) - gets replaced with <label-(open|close)>
  212. ; <menu> (default)
  213. ; Note that if you use <label-toggle> you must also include
  214. ; the definition for <label-open>
  215. ;;format = <label-toggle> <menu>
  216. ;;format-prefix = ${menu.icon-menu}
  217. format-spacing = 1
  218. label-open = o
  219. label-close = c
  220. ; Optional item separator
  221. ; Default: none
  222. label-separator = |
  223. label-open-foreground = ${color.accent}
  224. label-close-foreground = ${color.accent}
  225. label-separator-foreground = ${color.accent}
  226. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  227. [module/colors-switch]
  228. type = custom/text
  229. content = cs
  230. ; "content" has the same properties as "format-NAME"
  231. ;;content-background = ${color.accent}
  232. ;;content-foreground = ${color.background}
  233. ;;content-padding = 3
  234. ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND"
  235. click-left = ~/.config/polybar/scripts/color-switch.sh &
  236. ;;click-middle = ~/.config/polybar/scripts/color-switch.sh &
  237. click-right = ~/.config/polybar/scripts/color-switch.sh &
  238. ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND"
  239. ;;scroll-up = ~/.config/polybar/scripts/powermenu
  240. ;;scroll-down = ~/.config/polybar/scripts/powermenu
  241. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  242. ;; __________ ______
  243. ;; / ____/ __ \/ ____/
  244. ;; / __/ / / / / /_
  245. ;; / /___/ /_/ / __/
  246. ;; /_____/\____/_/
  247. ;;
  248. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_