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.

244 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/forest/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-foreground = ${color.yellow}
  30. ; Available tokens:
  31. ; %output%
  32. ; Default: %output%
  33. label = " Updates: %output%"
  34. ; Available tokens:
  35. ; %counter%
  36. ; %pid%
  37. ;
  38. ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c [command]"
  39. click-left = exo-open --launch TerminalEmulator &
  40. click-right = exo-open --launch TerminalEmulator &
  41. ;;double-click-left = echo double left %counter%
  42. ;;double-click-middle = echo double middle %counter%
  43. ;;double-click-right = echo double right %counter%
  44. ; Available tokens:
  45. ; %counter%
  46. ; %pid%
  47. ;
  48. ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c [command]"
  49. ;;scroll-up = echo scroll up %counter%
  50. ;;scroll-down = echo scroll down %counter%
  51. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  52. [module/launcher]
  53. type = custom/text
  54. content =
  55. content-foreground = ${color.purple}
  56. ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND"
  57. click-left = ~/.config/polybar/forest/scripts/launcher.sh &
  58. ;;click-middle = ~/.config/polybar/forest/scripts/launcher-full
  59. click-right = ~/.config/polybar/forest/scripts/style-switch.sh &
  60. ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND"
  61. ;;scroll-up = ~/.config/polybar/forest/scripts/launcher.sh &
  62. ;;scroll-down = ~/.config/polybar/forest/scripts/color-switch.sh &
  63. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  64. [module/sysmenu]
  65. type = custom/text
  66. content =
  67. content-foreground = ${color.cyan}
  68. click-left = ~/.config/polybar/forest/scripts/powermenu.sh &
  69. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  70. [module/color-switch]
  71. type = custom/text
  72. content =
  73. content-foreground = ${color.red}
  74. click-left = ~/.config/polybar/forest/scripts/style-switch.sh &
  75. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  76. [module/sep]
  77. type = custom/text
  78. content = |
  79. content-foreground = ${color.sep}
  80. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  81. [module/apps]
  82. type = custom/text
  83. [module/term]
  84. inherit = module/apps
  85. content =
  86. content-foreground = ${color.blue-gray}
  87. click-left = termite &
  88. click-middle = urxvt &
  89. click-right = xfce4-terminal &
  90. [module/files]
  91. inherit = module/apps
  92. content =
  93. content-foreground = ${color.blue}
  94. click-left = thunar &
  95. click-right = pcmanfm &
  96. [module/browser]
  97. inherit = module/apps
  98. content =
  99. content-foreground = ${color.orange}
  100. click-left = firefox &
  101. click-right = chromium &
  102. [module/settings]
  103. inherit = module/apps
  104. content =
  105. content-foreground = ${color.teal}
  106. click-left = xfce4-settings-manager &
  107. click-right = lxappearance &
  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. label-open =
  140. label-open-foreground = ${color.cyan}
  141. label-open-padding = 1
  142. label-close =
  143. label-close-foreground = ${color.red}
  144. label-close-padding = 1
  145. ; Optional item separator
  146. ; Default: none
  147. ;label-separator = " | "
  148. ;label-separator-foreground = ${color.foreground}
  149. ;label-separator-background = ${color.background-alt}
  150. ;;label-open-foreground = ${color.foreground}
  151. ;;label-close-foreground = ${color.background}
  152. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  153. [module/menu]
  154. type = custom/menu
  155. ; If true, <label-toggle> will be to the left of the menu items (default).
  156. ; If false, it will be on the right of all the items.
  157. expand-right = true
  158. ; "menu-LEVEL-N" has the same properties as "label-NAME" with
  159. ; the additional "exec" property
  160. ;
  161. ; Available exec commands:
  162. ; menu-open-LEVEL
  163. ; menu-close
  164. ; Other commands will be executed using "/usr/bin/env sh -c $COMMAND"
  165. menu-0-0 ="  Menu | "
  166. menu-0-0-exec = ~/.config/polybar/forest/scripts/launcher.sh &
  167. menu-0-1 =" Files | "
  168. menu-0-1-exec = thunar &
  169. menu-0-2 =" Terminal | "
  170. menu-0-2-exec = termite &
  171. menu-0-3 =" Browser "
  172. menu-0-3-exec = firefox &
  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. label-open =
  180. label-open-foreground = ${color.yellow}
  181. label-open-padding = 1
  182. label-close =
  183. label-close-foreground = ${color.red}
  184. label-close-padding = 1
  185. ; Optional item separator
  186. ; Default: none
  187. ;label-separator = " | "
  188. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_