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.

288 lines
8.9 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/colorblocks/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-prefix-font = 2
  30. format-background = ${color.shade8}
  31. format-foreground = ${color.foreground}
  32. format-padding = 2
  33. ; Available tokens:
  34. ; %output%
  35. ; Default: %output%
  36. label = %output%
  37. ; Available tokens:
  38. ; %counter%
  39. ; %pid%
  40. ;
  41. ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c [command]"
  42. click-left = exo-open --launch TerminalEmulator &
  43. click-right = exo-open --launch TerminalEmulator &
  44. ;;double-click-left = echo double left %counter%
  45. ;;double-click-middle = echo double middle %counter%
  46. ;;double-click-right = echo double right %counter%
  47. ; Available tokens:
  48. ; %counter%
  49. ; %pid%
  50. ;
  51. ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c [command]"
  52. ;;scroll-up = echo scroll up %counter%
  53. ;;scroll-down = echo scroll down %counter%
  54. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  55. [module/launcher]
  56. type = custom/text
  57. content =
  58. ; "content" has the same properties as "format-NAME"
  59. content-background = ${color.background}
  60. content-foreground = ${color.shade4}
  61. content-padding = 2
  62. ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND"
  63. click-left = ~/.config/polybar/colorblocks/scripts/launcher.sh &
  64. ;;click-middle = ~/.config/polybar/colorblocks/scripts/launcher-full
  65. click-right = ~/.config/polybar/colorblocks/scripts/color-switch.sh &
  66. ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND"
  67. ;;scroll-up = ~/.config/polybar/colorblocks/scripts/launcher.sh &
  68. ;;scroll-down = ~/.config/polybar/colorblocks/scripts/color-switch.sh &
  69. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  70. [module/sysmenu]
  71. type = custom/text
  72. content =
  73. content-background = ${color.background}
  74. content-foreground = ${color.shade4}
  75. content-padding = 2
  76. click-left = ~/.config/polybar/colorblocks/scripts/powermenu.sh &
  77. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  78. [module/color-switch]
  79. type = custom/text
  80. content =
  81. content-background = #FFFFFF
  82. content-foreground = #CC6666
  83. content-padding = 2
  84. click-left = ~/.config/polybar/colorblocks/scripts/color-switch.sh &
  85. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  86. [module/sep]
  87. type = custom/text
  88. content = " "
  89. content-background = ${color.alpha}
  90. content-foreground = ${color.alpha}
  91. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  92. [module/links]
  93. type = custom/text
  94. content-background = ${color.background}
  95. content-padding = 2
  96. content-font = 2
  97. [module/google]
  98. inherit = module/links
  99. content =
  100. content-foreground = ${color.shade7}
  101. click-left = exo-open https://www.google.com/ &
  102. [module/github]
  103. inherit = module/links
  104. content =
  105. content-foreground = ${color.shade6}
  106. click-left = exo-open https://www.github.com/ &
  107. [module/reddit]
  108. inherit = module/links
  109. content =
  110. content-foreground = ${color.shade5}
  111. click-left = exo-open https://www.reddit.com/ &
  112. [module/gmail]
  113. inherit = module/links
  114. content =
  115. content-foreground = ${color.shade4}
  116. click-left = exo-open https://mail.google.com/ &
  117. [module/twitter]
  118. inherit = module/links
  119. content =
  120. content-foreground = ${color.shade3}
  121. click-left = exo-open https://www.twitter.com/ &
  122. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  123. [module/powermenu]
  124. type = custom/menu
  125. ; If true, <label-toggle> will be to the left of the menu items (default).
  126. ; If false, it will be on the right of all the items.
  127. expand-right = true
  128. ; "menu-LEVEL-N" has the same properties as "label-NAME" with
  129. ; the additional "exec" property
  130. ;
  131. ; Available exec commands:
  132. ; menu-open-LEVEL
  133. ; menu-close
  134. ; Other commands will be executed using "/usr/bin/env sh -c $COMMAND"
  135. menu-0-0 = " Reboot "
  136. menu-0-0-background = ${color.background}
  137. menu-0-0-foreground = ${color.foreground-alt}
  138. menu-0-0-exec = menu-open-1
  139. menu-0-1 = " Shutdown "
  140. menu-0-1-background = ${color.background}
  141. menu-0-1-foreground = ${color.foreground-alt}
  142. menu-0-1-exec = menu-open-2
  143. menu-1-0 = " Back "
  144. menu-1-0-background = ${color.background}
  145. menu-1-0-foreground = ${color.foreground-alt}
  146. menu-1-0-exec = menu-open-0
  147. menu-1-1 = " Reboot "
  148. menu-1-1-background = ${color.background}
  149. menu-1-1-foreground = ${color.foreground-alt}
  150. menu-1-1-exec = systemctl reboot
  151. menu-2-0 = " Shutdown "
  152. menu-2-0-background = ${color.background}
  153. menu-2-0-foreground = ${color.foreground-alt}
  154. menu-2-0-exec = systemctl poweroff
  155. menu-2-1 = " Back "
  156. menu-2-1-background = ${color.background}
  157. menu-2-1-foreground = ${color.foreground-alt}
  158. menu-2-1-exec = menu-open-0
  159. ; Available tags:
  160. ; <label-toggle> (default) - gets replaced with <label-(open|close)>
  161. ; <menu> (default)
  162. ; Note that if you use <label-toggle> you must also include
  163. ; the definition for <label-open>
  164. format = <label-toggle><menu>
  165. format-background = ${color.background}
  166. format-foreground = ${color.foreground}
  167. label-open =
  168. label-open-background = ${color.background}
  169. label-open-foreground = ${color.shade4}
  170. label-open-padding = 2
  171. label-open-font = 1
  172. label-close =
  173. label-close-background = ${color.background}
  174. label-close-foreground = ${color.shade4}
  175. label-close-padding = 2
  176. label-close-font = 2
  177. ; Optional item separator
  178. ; Default: none
  179. label-separator = " | "
  180. label-separator-background = ${color.background}
  181. label-separator-foreground = ${color.shade4}
  182. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  183. [module/menu]
  184. type = custom/menu
  185. ; If true, <label-toggle> will be to the left of the menu items (default).
  186. ; If false, it will be on the right of all the items.
  187. expand-right = true
  188. ; "menu-LEVEL-N" has the same properties as "label-NAME" with
  189. ; the additional "exec" property
  190. ;
  191. ; Available exec commands:
  192. ; menu-open-LEVEL
  193. ; menu-close
  194. ; Other commands will be executed using "/usr/bin/env sh -c $COMMAND"
  195. menu-0-0 = Menu
  196. menu-0-0-background = ${color.background}
  197. menu-0-0-foreground = ${color.foreground-alt}
  198. menu-0-0-exec = ~/.config/polybar/colorblocks/scripts/launcher.sh &
  199. menu-0-1 = Files
  200. menu-0-1-background = ${color.background}
  201. menu-0-1-foreground = ${color.foreground-alt}
  202. menu-0-1-exec = thunar &
  203. menu-0-2 = Terminal
  204. menu-0-2-background = ${color.background}
  205. menu-0-2-foreground = ${color.foreground-alt}
  206. menu-0-2-exec = termite &
  207. menu-0-3 =" Browser "
  208. menu-0-3-background = ${color.background}
  209. menu-0-3-foreground = ${color.foreground-alt}
  210. menu-0-3-exec = firefox &
  211. ; Available tags:
  212. ; <label-toggle> (default) - gets replaced with <label-(open|close)>
  213. ; <menu> (default)
  214. ; Note that if you use <label-toggle> you must also include
  215. ; the definition for <label-open>
  216. format = <label-toggle><menu>
  217. format-background = ${color.background}
  218. label-open =
  219. label-open-background = ${color.background}
  220. label-open-foreground = ${color.shade4}
  221. label-open-padding = 2
  222. label-open-font = 2
  223. label-close =
  224. label-close-background = ${color.background}
  225. label-close-foreground = ${color.shade4}
  226. label-close-padding = 2
  227. label-close-font = 2
  228. ; Optional item separator
  229. ; Default: none
  230. label-separator = " | "
  231. label-separator-background = ${color.background}
  232. label-separator-foreground = ${color.shade4}
  233. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_