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.

282 lines
8.1 KiB

  1. ;; ┌──────────────────────────────────────────────────────────────────────────────-----┐
  2. ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█░█░█▀▀░█▀▀░█▀▄░░░█▄█░█▀█░█▀▄░█░█░█░░░█▀▀░█▀▀ │
  3. ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░█░▀▀█░█▀▀░█▀▄░░░█░█░█░█░█░█░█░█░█░░░█▀▀░▀▀█ │
  4. ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀░▀░░░▀░▀░▀▀▀░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀ │
  5. ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│
  6. ;; └──────────────────────────────────────────────────────────────────────────────-----┘
  7. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  8. [module/checknet]
  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/hack/scripts/check-network
  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. ; Available tokens:
  30. ; %output%
  31. ; Default: %output%
  32. label = %output%
  33. ; Available tokens:
  34. ; %counter%
  35. ; %pid%
  36. ;
  37. ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c [command]"
  38. click-left = networkmanager_dmenu &
  39. click-right = networkmanager_dmenu &
  40. ;;double-click-left = echo double left %counter%
  41. ;;double-click-middle = echo double middle %counter%
  42. ;;double-click-right = echo double right %counter%
  43. ; Available tokens:
  44. ; %counter%
  45. ; %pid%
  46. ;
  47. ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c [command]"
  48. ;;scroll-up = echo scroll up %counter%
  49. ;;scroll-down = echo scroll down %counter%
  50. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  51. [module/updates]
  52. type = custom/script
  53. ; Available tokens:
  54. ; %counter%
  55. ; Command to be executed (using "/usr/bin/env sh -c [command]")
  56. exec = ~/.config/polybar/hack/scripts/updates.sh
  57. ; Conditional command that, if defined, needs to exit successfully
  58. ; before the main exec command is invoked.
  59. ; Default: ""
  60. ;;exec-if = ""
  61. ; Will the script output continous content?
  62. ; Default: false
  63. tail = true
  64. ; Seconds to sleep between updates
  65. ; Default: 2 (0 if `tail = true`)
  66. interval = 5
  67. ; Available tags:
  68. ; <output> - deprecated
  69. ; <label> (default)
  70. format = <label>
  71. format-prefix =
  72. ; Available tokens:
  73. ; %output%
  74. ; Default: %output%
  75. label = %output%
  76. ; Available tokens:
  77. ; %counter%
  78. ; %pid%
  79. ;
  80. ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c [command]"
  81. click-left = exo-open --launch TerminalEmulator &
  82. click-right = exo-open --launch TerminalEmulator &
  83. ;;double-click-left = echo double left %counter%
  84. ;;double-click-middle = echo double middle %counter%
  85. ;;double-click-right = echo double right %counter%
  86. ; Available tokens:
  87. ; %counter%
  88. ; %pid%
  89. ;
  90. ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c [command]"
  91. ;;scroll-up = echo scroll up %counter%
  92. ;;scroll-down = echo scroll down %counter%
  93. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  94. [module/launcher]
  95. type = custom/text
  96. content =
  97. ; "content" has the same properties as "format-NAME"
  98. content-foreground = ${color.primary}
  99. ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND"
  100. click-left = ~/.config/polybar/hack/scripts/launcher.sh &
  101. ;;click-middle = ~/.config/polybar/hack/scripts/launcher-full
  102. click-right = ~/.config/polybar/hack/scripts/color-switch.sh &
  103. ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND"
  104. ;;scroll-up = ~/.config/polybar/hack/scripts/launcher.sh &
  105. ;;scroll-down = ~/.config/polybar/hack/scripts/color-switch.sh &
  106. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  107. [module/sysmenu]
  108. type = custom/text
  109. content =
  110. content-foreground = ${color.primary}
  111. click-left = ~/.config/polybar/hack/scripts/powermenu.sh &
  112. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  113. [module/color-switch]
  114. type = custom/text
  115. content =
  116. content-foreground = ${color.primary}
  117. click-left = ~/.config/polybar/hack/scripts/color-switch.sh &
  118. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  119. [module/sep]
  120. type = custom/text
  121. content = " | "
  122. content-foreground = ${color.background}
  123. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  124. [module/links]
  125. type = custom/text
  126. content-foreground = ${color.foreground-alt}
  127. content-padding = 2
  128. [module/google]
  129. inherit = module/links
  130. content =
  131. click-left = exo-open https://www.google.com/ &
  132. [module/github]
  133. inherit = module/links
  134. content =
  135. click-left = exo-open https://www.github.com/ &
  136. [module/reddit]
  137. inherit = module/links
  138. content =
  139. click-left = exo-open https://www.reddit.com/ &
  140. [module/gmail]
  141. inherit = module/links
  142. content =
  143. click-left = exo-open https://mail.google.com/ &
  144. [module/twitter]
  145. inherit = module/links
  146. content =
  147. click-left = exo-open https://www.twitter.com/ &
  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-foreground = ${color.primary}
  180. label-open =
  181. label-close =
  182. ; Optional item separator
  183. ; Default: none
  184. label-separator = " | "
  185. ;;label-open-foreground = ${color.foreground}
  186. ;;label-close-foreground = ${color.background}
  187. ;;label-separator-foreground = ${color.background}
  188. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  189. [module/menu]
  190. type = custom/menu
  191. ; If true, <label-toggle> will be to the left of the menu items (default).
  192. ; If false, it will be on the right of all the items.
  193. expand-right = true
  194. ; "menu-LEVEL-N" has the same properties as "label-NAME" with
  195. ; the additional "exec" property
  196. ;
  197. ; Available exec commands:
  198. ; menu-open-LEVEL
  199. ; menu-close
  200. ; Other commands will be executed using "/usr/bin/env sh -c $COMMAND"
  201. menu-0-0 = Menu
  202. menu-0-0-exec = ~/.config/polybar/hack/scripts/launcher.sh &
  203. menu-0-1 = Files
  204. menu-0-1-exec = thunar &
  205. menu-0-2 = Terminal
  206. menu-0-2-exec = termite &
  207. menu-0-3 = Browser
  208. menu-0-3-exec = firefox &
  209. ; Available tags:
  210. ; <label-toggle> (default) - gets replaced with <label-(open|close)>
  211. ; <menu> (default)
  212. ; Note that if you use <label-toggle> you must also include
  213. ; the definition for <label-open>
  214. format = <label-toggle> <menu>
  215. format-foreground = ${color.primary}
  216. label-open =
  217. label-close =
  218. ; Optional item separator
  219. ; Default: none
  220. label-separator = " | "
  221. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_