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.

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