user_modules.ini (7897B)
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/beach/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/beach/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/beach/scripts/lupdates & 109 ;;click-middle = ~/.config/polybar/beach/scripts/lupdates & 110 ;;click-right = ~/.config/polybar/beach/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 129 ; "content" has the same properties as "format-NAME" 130 ;;content-background = #000 131 ;;content-foreground = #fff 132 ;;content-padding = 4 133 134 ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND" 135 click-left = skippy-xd 136 click-middle = skippy-xd 137 click-right = Path_to_script 138 139 ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND" 140 ;;scroll-up = skippy-xd 141 ;;scroll-down = skippy-xd 142 143 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 144 145 [module/launcher] 146 type = custom/text 147 content = 148 149 ; "content" has the same properties as "format-NAME" 150 ;;content-background = #000 151 content-foreground = ${color.BLUE} 152 content-background = ${color.DARK} 153 content-padding = 2 154 155 ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND" 156 click-left = Path_to_script 157 ;;click-middle = Path_to_script 158 click-right = Path_to_script 159 160 ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND" 161 ;;scroll-up = Path_to_script 162 scroll-down = Path_to_script 163 164 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 165 166 [module/sysmenu] 167 type = custom/text 168 content = 169 170 ; "content" has the same properties as "format-NAME" 171 ;;content-background = #000 172 content-foreground = ${color.RED} 173 content-background = ${color.DARK} 174 content-padding = 2 175 176 ; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND" 177 click-left = Path_to_script 178 ;;click-middle = Path_to_script 179 click-right = Path_to_script 180 181 ; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND" 182 ;;scroll-up = Path_to_script 183 ;;scroll-down = Path_to_script 184 185 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 186 187 [module/separator] 188 type = custom/text 189 content = | 190 191 ; "content" has the same properties as "format-NAME" 192 ;;content-background = #000 193 content-foreground = ${color.RED} 194 ;content-background = ${color.DARK} 195 ;content-padding = 2 196 197 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 198 199 [module/powermenu] 200 type = custom/menu 201 202 ; If true, <label-toggle> will be to the left of the menu items (default). 203 ; If false, it will be on the right of all the items. 204 expand-right = true 205 206 ; "menu-LEVEL-N" has the same properties as "label-NAME" with 207 ; the additional "exec" property 208 ; 209 ; Available exec commands: 210 ; menu-open-LEVEL 211 ; menu-close 212 ; Other commands will be executed using "/usr/bin/env sh -c $COMMAND" 213 menu-0-0 = reboot 214 menu-0-0-exec = menu-open-1 215 menu-0-1 = shutdown 216 menu-0-1-exec = menu-open-2 217 218 menu-1-0 = back 219 menu-1-0-exec = menu-open-0 220 menu-1-1 = reboot 221 menu-1-1-exec = systemctl reboot 222 223 menu-2-0 = shutdown 224 menu-2-0-exec = systemctl poweroff 225 menu-2-1 = back 226 menu-2-1-exec = menu-open-0 227 228 ; Available tags: 229 ; <label-toggle> (default) - gets replaced with <label-(open|close)> 230 ; <menu> (default) 231 ; Note that if you use <label-toggle> you must also include 232 ; the definition for <label-open> 233 234 ;;format = <label-toggle> <menu> 235 ;;format-prefix = ${menu.icon-menu} 236 format-spacing = 1 237 format-padding = 0 238 239 label-open = 240 label-close = 241 242 243 ; Optional item separator 244 ; Default: none 245 label-separator = | 246 247 label-open-foreground = ${color.RED} 248 label-close-foreground = ${color.RED} 249 label-separator-foreground = ${color.BLUE} 250 251 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 252 253 [module/menu] 254 type = custom/menu 255 256 ; If true, <label-toggle> will be to the left of the menu items (default). 257 ; If false, it will be on the right of all the items. 258 expand-right = true 259 260 ; "menu-LEVEL-N" has the same properties as "label-NAME" with 261 ; the additional "exec" property 262 ; 263 ; Available exec commands: 264 ; menu-open-LEVEL 265 ; menu-close 266 ; Other commands will be executed using "/usr/bin/env sh -c $COMMAND" 267 menu-0-0 = Menu 268 menu-0-0-exec = Path_to_script 269 menu-0-1 = Files 270 menu-0-1-exec = thunar & 271 menu-0-2 = Terminal 272 menu-0-2-exec = termite & 273 menu-0-3 = Browser 274 menu-0-3-exec = firefox & 275 276 ; Available tags: 277 ; <label-toggle> (default) - gets replaced with <label-(open|close)> 278 ; <menu> (default) 279 ; Note that if you use <label-toggle> you must also include 280 ; the definition for <label-open> 281 282 ;;format = <label-toggle> <menu> 283 ;;format-prefix = ${menu.icon-menu} 284 format-spacing = 1 285 286 label-open = 287 label-close = 288 289 290 ; Optional item separator 291 ; Default: none 292 label-separator = | 293 294 label-open-foreground = ${color.BLUE} 295 label-close-foreground = ${color.RED} 296 label-separator-foreground = ${color.BLUE} 297 298 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 299 ;; __________ ______ 300 ;; / ____/ __ \/ ____/ 301 ;; / __/ / / / / /_ 302 ;; / /___/ /_/ / __/ 303 ;; /_____/\____/_/ 304 ;; 305 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_