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.

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