Archlinux basic installation configuration scripts
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.

257 lines
7.7 KiB

  1. ;; ┌──────────────────────────────────────────────────────────────────────────────-----┐
  2. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█░█░█▀▀░█▀▀░█▀▄░░░█▄█░█▀█░█▀▄░█░█░█░░░█▀▀░█▀▀ │
  3. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░█░▀▀█░█▀▀░█▀▄░░░█░█░█░█░█░█░█░█░█░░░█▀▀░▀▀█ │
  4. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀░▀░░░▀░▀░▀▀▀░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀ │
  5. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│
  6. ;; └──────────────────────────────────────────────────────────────────────────────-----┘
  7. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  8. [module/updates]
  9. type = custom/script
  10. ; Available tokens:
  11. ; %counter%
  12. ; Command to be executed (using "/usr/bin/env sh -c [command]")
  13. exec = ~/.config/polybar/grayblocks/scripts/updates.sh
  14. ; Conditional command that, if defined, needs to exit successfully
  15. ; before the main exec command is invoked.
  16. ; Default: ""
  17. ;;exec-if = ""
  18. ; Will the script output continous content?
  19. ; Default: false
  20. tail = true
  21. ; Seconds to sleep between updates
  22. ; Default: 2 (0 if `tail = true`)
  23. interval = 5
  24. ; Available tags:
  25. ; <output> - deprecated
  26. ; <label> (default)
  27. format = <label>
  28. format-prefix =
  29. format-background = ${color.background-alt}
  30. format-foreground = ${color.foreground}
  31. format-overline = ${color.background}
  32. format-underline = ${color.background}
  33. format-padding = 2
  34. ; Available tokens:
  35. ; %output%
  36. ; Default: %output%
  37. label = %output%
  38. ; Available tokens:
  39. ; %counter%
  40. ; %pid%
  41. ;
  42. ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c [command]"
  43. click-left = exo-open --launch TerminalEmulator &
  44. click-right = exo-open --launch TerminalEmulator &
  45. ;;double-click-left = echo double left %counter%
  46. ;;double-click-middle = echo double middle %counter%
  47. ;;double-click-right = echo double right %counter%
  48. ; Available tokens:
  49. ; %counter%
  50. ; %pid%
  51. ;
  52. ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c [command]"
  53. ;;scroll-up = echo scroll up %counter%
  54. ;;scroll-down = echo scroll down %counter%
  55. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  56. [module/launcher]
  57. type = custom/text
  58. content =
  59. ; "content" has the same properties as "format-NAME"
  60. content-background = ${color.background}
  61. content-foreground = ${color.foreground-alt}
  62. content-padding = 4
  63. ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND"
  64. click-left = ~/.config/polybar/grayblocks/scripts/launcher.sh &
  65. ;;click-middle = ~/.config/polybar/grayblocks/scripts/launcher-full
  66. click-right = ~/.config/polybar/grayblocks/scripts/color-switch.sh &
  67. ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND"
  68. ;;scroll-up = ~/.config/polybar/grayblocks/scripts/launcher.sh &
  69. ;;scroll-down = ~/.config/polybar/grayblocks/scripts/color-switch.sh &
  70. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  71. [module/sysmenu]
  72. type = custom/text
  73. content =
  74. content-background = ${color.background}
  75. content-foreground = ${color.foreground-alt}
  76. content-padding = 4
  77. click-left = ~/.config/polybar/grayblocks/scripts/powermenu.sh &
  78. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  79. [module/color-switch]
  80. type = custom/text
  81. content =
  82. content-background = ${color.background-alt}
  83. content-foreground = ${color.foreground}
  84. content-overline = ${color.background}
  85. content-underline = ${color.background}
  86. content-padding = 2
  87. click-left = ~/.config/polybar/grayblocks/scripts/color-switch.sh &
  88. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  89. [module/sep]
  90. type = custom/text
  91. content = |
  92. content-background = ${color.background}
  93. content-foreground = ${color.background}
  94. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  95. [module/apps]
  96. type = custom/text
  97. content-background = ${color.background-alt}
  98. content-foreground = ${color.foreground}
  99. content-overline = ${color.background}
  100. content-underline = ${color.background}
  101. content-padding = 1
  102. [module/term]
  103. inherit = module/apps
  104. content =
  105. click-left = termite &
  106. click-middle = urxvt &
  107. click-right = xfce4-terminal &
  108. [module/files]
  109. inherit = module/apps
  110. content =
  111. click-left = thunar &
  112. click-right = pcmanfm &
  113. [module/browser]
  114. inherit = module/apps
  115. content =
  116. click-left = firefox &
  117. click-right = chromium &
  118. [module/settings]
  119. inherit = module/apps
  120. content =
  121. click-left = xfce4-settings-manager &
  122. click-right = lxappearance &
  123. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  124. [module/powermenu]
  125. type = custom/menu
  126. ; If true, <label-toggle> will be to the left of the menu items (default).
  127. ; If false, it will be on the right of all the items.
  128. expand-right = true
  129. ; "menu-LEVEL-N" has the same properties as "label-NAME" with
  130. ; the additional "exec" property
  131. ;
  132. ; Available exec commands:
  133. ; menu-open-LEVEL
  134. ; menu-close
  135. ; Other commands will be executed using "/usr/bin/env sh -c $COMMAND"
  136. menu-0-0 = reboot
  137. menu-0-0-exec = menu-open-1
  138. menu-0-1 = shutdown
  139. menu-0-1-exec = menu-open-2
  140. menu-1-0 = back
  141. menu-1-0-exec = menu-open-0
  142. menu-1-1 = reboot
  143. menu-1-1-exec = systemctl reboot
  144. menu-2-0 = shutdown
  145. menu-2-0-exec = systemctl poweroff
  146. menu-2-1 = back
  147. menu-2-1-exec = menu-open-0
  148. ; Available tags:
  149. ; <label-toggle> (default) - gets replaced with <label-(open|close)>
  150. ; <menu> (default)
  151. ; Note that if you use <label-toggle> you must also include
  152. ; the definition for <label-open>
  153. format = <label-toggle> <menu>
  154. format-background = ${color.background-alt}
  155. format-foreground = ${color.foreground}
  156. format-overline = ${color.background}
  157. format-underline = ${color.background}
  158. format-padding = 2
  159. label-open =
  160. label-close =
  161. ; Optional item separator
  162. ; Default: none
  163. label-separator = " | "
  164. ;;label-open-foreground = ${color.foreground}
  165. ;;label-close-foreground = ${color.background}
  166. ;;label-separator-foreground = ${color.background}
  167. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  168. [module/menu]
  169. type = custom/menu
  170. ; If true, <label-toggle> will be to the left of the menu items (default).
  171. ; If false, it will be on the right of all the items.
  172. expand-right = true
  173. ; "menu-LEVEL-N" has the same properties as "label-NAME" with
  174. ; the additional "exec" property
  175. ;
  176. ; Available exec commands:
  177. ; menu-open-LEVEL
  178. ; menu-close
  179. ; Other commands will be executed using "/usr/bin/env sh -c $COMMAND"
  180. menu-0-0 = Menu
  181. menu-0-0-exec = ~/.config/polybar/grayblocks/scripts/launcher.sh &
  182. menu-0-1 = Files
  183. menu-0-1-exec = thunar &
  184. menu-0-2 = Terminal
  185. menu-0-2-exec = termite &
  186. menu-0-3 = Browser
  187. menu-0-3-exec = firefox &
  188. ; Available tags:
  189. ; <label-toggle> (default) - gets replaced with <label-(open|close)>
  190. ; <menu> (default)
  191. ; Note that if you use <label-toggle> you must also include
  192. ; the definition for <label-open>
  193. format = <label-toggle> <menu>
  194. format-background = ${color.background-alt}
  195. format-foreground = ${color.foreground}
  196. format-overline = ${color.background}
  197. format-underline = ${color.background}
  198. format-padding = 2
  199. label-open =
  200. label-close =
  201. ; Optional item separator
  202. ; Default: none
  203. label-separator = " | "
  204. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_