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.

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