user_modules.ini (8009B)
1 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 2 ;; 3 ;; __ __ __ ___ __ __ 4 ;; / / / /_______ _____ / |/ /___ ____/ /_ __/ /__ _____ 5 ;; / / / / ___/ _ \/ ___/ / /|_/ / __ \/ __ / / / / / _ \/ ___/ 6 ;; / /_/ (__ ) __/ / / / / / /_/ / /_/ / /_/ / / __(__ ) 7 ;; \____/____/\___/_/ /_/ /_/\____/\__,_/\__,_/_/\___/____/ 8 ;; 9 ;; Created By Aditya Shakya @adi1090x 10 ;; 11 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 12 13 [module/checknetwork] 14 type = custom/script 15 16 ; Available tokens: 17 ; %counter% 18 ; Command to be executed (using "/usr/bin/env sh -c [command]") 19 exec = ~/.config/polybar/forest/scripts/check-network 20 21 ; Conditional command that, if defined, needs to exit successfully 22 ; before the main exec command is invoked. 23 ; Default: "" 24 ;;exec-if = "" 25 26 ; Will the script output continous content? 27 ; Default: false 28 tail = true 29 30 ; Seconds to sleep between updates 31 ; Default: 2 (0 if `tail = true`) 32 interval = 5 33 34 ; Available tags: 35 ; <output> - deprecated 36 ; <label> (default) 37 ;;format = <label> 38 ;;format-background = #999 39 ;;format-foreground = #000 40 ;;format-padding = 4 41 42 ; Available tokens: 43 ; %output% 44 ; Default: %output% 45 ;;label = %output:0:15:...% 46 47 ; Available tokens: 48 ; %counter% 49 ; %pid% 50 ; 51 ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c [command]" 52 click-left = networkmanager_dmenu & 53 click-middle = networkmanager_dmenu & 54 click-right = networkmanager_dmenu & 55 ;;double-click-left = echo double left %counter% 56 ;;double-click-middle = echo double middle %counter% 57 ;;double-click-right = echo double right %counter% 58 59 ; Available tokens: 60 ; %counter% 61 ; %pid% 62 ; 63 ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c [command]" 64 ;;scroll-up = echo scroll up %counter% 65 ;;scroll-down = echo scroll down %counter% 66 67 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 68 69 [module/updates] 70 type = custom/script 71 72 ; Available tokens: 73 ; %counter% 74 ; Command to be executed (using "/usr/bin/env sh -c [command]") 75 exec = ~/.config/polybar/forest/scripts/updates.sh 76 77 ; Conditional command that, if defined, needs to exit successfully 78 ; before the main exec command is invoked. 79 ; Default: "" 80 ;;exec-if = "" 81 82 ; Will the script output continous content? 83 ; Default: false 84 tail = true 85 86 ; Seconds to sleep between updates 87 ; Default: 2 (0 if `tail = true`) 88 interval = 5 89 90 ; Available tags: 91 ; <output> - deprecated 92 ; <label> (default) 93 ;;format = <label> 94 ;;format-background = #999 95 ;;format-foreground = #000 96 ;;format-padding = 4 97 98 ; Available tokens: 99 ; %output% 100 ; Default: %output% 101 ;;label = %output:0:15:...% 102 103 ; Available tokens: 104 ; %counter% 105 ; %pid% 106 ; 107 ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c [command]" 108 click-left = ~/.config/polybar/forest/scripts/lupdates & 109 ;;click-middle = ~/.config/polybar/forest/scripts/lupdates & 110 ;;click-right = ~/.config/polybar/forest/scripts/lupdates & 111 ;;double-click-left = echo double left %counter% 112 ;;double-click-middle = echo double middle %counter% 113 ;;double-click-right = echo double right %counter% 114 115 ; Available tokens: 116 ; %counter% 117 ; %pid% 118 ; 119 ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c [command]" 120 ;;scroll-up = echo scroll up %counter% 121 ;;scroll-down = echo scroll down %counter% 122 123 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 124 125 [module/window_switch] 126 type = custom/text 127 content = Switch 128 content-prefix = " " 129 content-prefix-foreground = ${color.BLUE} 130 131 ; "content" has the same properties as "format-NAME" 132 ;;content-background = #000 133 ;;content-foreground = #fff 134 ;;content-padding = 4 135 136 ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND" 137 click-left = skippy-xd 138 click-middle = skippy-xd 139 click-right = path_to_script 140 141 ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND" 142 ;;scroll-up = skippy-xd 143 ;;scroll-down = skippy-xd 144 145 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 146 147 [module/launcher] 148 type = custom/text 149 content = 150 151 ; "content" has the same properties as "format-NAME" 152 ;;content-background = #000 153 content-foreground = ${color.RED} 154 ;;content-padding = 4 155 156 ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND" 157 click-left = path_to_script 158 ;;click-middle = path_to_script 159 click-right = path_to_script 160 161 ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND" 162 ;;scroll-up = path_to_script 163 scroll-down = path_to_script 164 165 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 166 167 [module/sep] 168 type = custom/text 169 content = | 170 171 ;;content-background = #000 172 content-foreground = ${color.BGA} 173 ;;content-padding = 4 174 175 [module/sep2] 176 type = custom/text 177 content = "| " 178 179 ;;content-background = #000 180 content-foreground = ${color.BGA} 181 ;;content-padding = 4 182 183 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 184 185 [module/sysmenu] 186 type = custom/text 187 content = 188 189 ; "content" has the same properties as "format-NAME" 190 ;;content-background = #000 191 content-foreground = ${color.YELLOW} 192 ;;content-padding = 4 193 194 ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND" 195 click-left = path_to_script 196 ;;click-middle = path_to_script 197 click-right = path_to_script 198 199 ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND" 200 ;;scroll-up = ~/.config/polybar/forest/scripts/powermenu 201 ;;scroll-down = ~/.config/polybar/forest/scripts/powermenu 202 203 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 204 205 [module/powermenu] 206 type = custom/menu 207 208 ; If true, <label-toggle> will be to the left of the menu items (default). 209 ; If false, it will be on the right of all the items. 210 expand-right = true 211 212 ; "menu-LEVEL-N" has the same properties as "label-NAME" with 213 ; the additional "exec" property 214 ; 215 ; Available exec commands: 216 ; menu-open-LEVEL 217 ; menu-close 218 ; Other commands will be executed using "/usr/bin/env sh -c $COMMAND" 219 menu-0-0 = reboot 220 menu-0-0-exec = menu-open-1 221 menu-0-1 = shutdown 222 menu-0-1-exec = menu-open-2 223 224 menu-1-0 = back 225 menu-1-0-exec = menu-open-0 226 menu-1-1 = reboot 227 menu-1-1-exec = systemctl reboot 228 229 menu-2-0 = shutdown 230 menu-2-0-exec = systemctl poweroff 231 menu-2-1 = back 232 menu-2-1-exec = menu-open-0 233 234 ; Available tags: 235 ; <label-toggle> (default) - gets replaced with <label-(open|close)> 236 ; <menu> (default) 237 ; Note that if you use <label-toggle> you must also include 238 ; the definition for <label-open> 239 240 ;;format = <label-toggle> <menu> 241 ;;format-prefix = ${menu.icon-menu} 242 format-spacing = 1 243 244 label-open = 245 label-close = 246 247 248 ; Optional item separator 249 ; Default: none 250 label-separator = | 251 252 label-open-foreground = ${color.TEAL} 253 label-close-foreground = ${color.TEAL} 254 label-separator-foreground = ${color.TEAL} 255 256 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 257 258 [module/menu] 259 type = custom/menu 260 261 ; If true, <label-toggle> will be to the left of the menu items (default). 262 ; If false, it will be on the right of all the items. 263 expand-right = true 264 265 ; "menu-LEVEL-N" has the same properties as "label-NAME" with 266 ; the additional "exec" property 267 ; 268 ; Available exec commands: 269 ; menu-open-LEVEL 270 ; menu-close 271 ; Other commands will be executed using "/usr/bin/env sh -c $COMMAND" 272 menu-0-0 = Menu 273 menu-0-0-exec = ~/.config/polybar/forest/scripts/launcher & 274 menu-0-1 = Files 275 menu-0-1-exec = thunar & 276 menu-0-2 = Terminal 277 menu-0-2-exec = termite & 278 menu-0-3 = Browser 279 menu-0-3-exec = firefox & 280 281 ; Available tags: 282 ; <label-toggle> (default) - gets replaced with <label-(open|close)> 283 ; <menu> (default) 284 ; Note that if you use <label-toggle> you must also include 285 ; the definition for <label-open> 286 287 ;;format = <label-toggle> <menu> 288 ;;format-prefix = ${menu.icon-menu} 289 format-spacing = 1 290 291 label-open = 292 label-close = 293 294 295 ; Optional item separator 296 ; Default: none 297 label-separator = | 298 299 label-open-foreground = ${color.PINK} 300 label-close-foreground = ${color.PINK} 301 label-separator-foreground = ${color.PINK} 302 303 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 304 ;; __________ ______ 305 ;; / ____/ __ \/ ____/ 306 ;; / __/ / / / / /_ 307 ;; / /___/ /_/ / __/ 308 ;; /_____/\____/_/ 309 ;; 310 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_