From 55de99081a032f5b7831c6e92c8f81b8cb2b1ca8 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Sun, 14 Nov 2021 22:51:43 -0800 Subject: [PATCH] add new polybar theme --- i3-wm/config-desktop | 4 +- polybar-themes/sblocks/bars.ini | 617 +++++++++ polybar-themes/sblocks/colors.ini | 39 + polybar-themes/sblocks/config.ini | 297 ++++ polybar-themes/sblocks/custom-mpd.ini | 35 + polybar-themes/sblocks/launch.sh | 14 + polybar-themes/sblocks/modules.ini | 1209 +++++++++++++++++ polybar-themes/sblocks/preview.ini | 309 +++++ polybar-themes/sblocks/preview.sh | 14 + polybar-themes/sblocks/scripts/checkupdates | 117 ++ polybar-themes/sblocks/scripts/launcher.sh | 12 + polybar-themes/sblocks/scripts/powermenu.sh | 94 ++ .../sblocks/scripts/rofi/colors.rasi | 11 + .../sblocks/scripts/rofi/confirm.rasi | 24 + .../sblocks/scripts/rofi/launcher.rasi | 115 ++ .../sblocks/scripts/rofi/message.rasi | 24 + .../sblocks/scripts/rofi/networkmenu.rasi | 123 ++ .../sblocks/scripts/rofi/powermenu.rasi | 123 ++ .../sblocks/scripts/rofi/styles.rasi | 123 ++ .../sblocks/scripts/style-switch.sh | 15 + polybar-themes/sblocks/scripts/styles.sh | 74 + polybar-themes/sblocks/scripts/updates.sh | 45 + polybar-themes/sblocks/user_modules.ini | 292 ++++ scripts/launch_desktop.sh | 4 +- scripts/mpd-controls.sh | 4 +- 25 files changed, 3733 insertions(+), 5 deletions(-) create mode 100644 polybar-themes/sblocks/bars.ini create mode 100644 polybar-themes/sblocks/colors.ini create mode 100644 polybar-themes/sblocks/config.ini create mode 100644 polybar-themes/sblocks/custom-mpd.ini create mode 100755 polybar-themes/sblocks/launch.sh create mode 100644 polybar-themes/sblocks/modules.ini create mode 100644 polybar-themes/sblocks/preview.ini create mode 100755 polybar-themes/sblocks/preview.sh create mode 100755 polybar-themes/sblocks/scripts/checkupdates create mode 100755 polybar-themes/sblocks/scripts/launcher.sh create mode 100755 polybar-themes/sblocks/scripts/powermenu.sh create mode 100644 polybar-themes/sblocks/scripts/rofi/colors.rasi create mode 100644 polybar-themes/sblocks/scripts/rofi/confirm.rasi create mode 100644 polybar-themes/sblocks/scripts/rofi/launcher.rasi create mode 100644 polybar-themes/sblocks/scripts/rofi/message.rasi create mode 100644 polybar-themes/sblocks/scripts/rofi/networkmenu.rasi create mode 100644 polybar-themes/sblocks/scripts/rofi/powermenu.rasi create mode 100644 polybar-themes/sblocks/scripts/rofi/styles.rasi create mode 100755 polybar-themes/sblocks/scripts/style-switch.sh create mode 100755 polybar-themes/sblocks/scripts/styles.sh create mode 100755 polybar-themes/sblocks/scripts/updates.sh create mode 100644 polybar-themes/sblocks/user_modules.ini diff --git a/i3-wm/config-desktop b/i3-wm/config-desktop index 4246f30..154d891 100644 --- a/i3-wm/config-desktop +++ b/i3-wm/config-desktop @@ -479,7 +479,7 @@ bindsym $mod+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking bindsym $mod+w layout tabbed -bindsym $mod+Shift+e layout toggle split +bindsym $mod+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle @@ -608,7 +608,7 @@ bindsym $mod+minus scratchpad show # bindsym Mod1+Shift+t [title="System Tray"] scratchpad show, resize set 250 260, move position center -bindsym $mod+e exec --no-startup-id emacsclient -n -c ~ +bindsym $mod+Shift+e exec --no-startup-id emacsclient -n -c ~ bindsym $mod+Shift+v exec --no-startup-id emacsclient -n -c -e '(+vterm/here nil)' bindsym $mod+Shift+Return exec --no-startup-id emacsclient -n -c -e '(+vterm/here nil)' bindsym Control+Shift+a exec --no-startup-id ~/SudacodeRice/scripts/emc ~/Projects/Scripts/aniwrapper diff --git a/polybar-themes/sblocks/bars.ini b/polybar-themes/sblocks/bars.ini new file mode 100644 index 0000000..3590ef7 --- /dev/null +++ b/polybar-themes/sblocks/bars.ini @@ -0,0 +1,617 @@ +;; ┌────────────────────────────────────────────────────┐ +;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▄░█▀█░█▀▄░█▀▀│ +;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█▀▄░█▀█░█▀▄░▀▀█│ +;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀░░▀░▀░▀░▀░▀▀▀│ +;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░│ +;; └────────────────────────────────────────────────────┘ + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[bar] +fill =  +empty =  +indicator =  + +[module/volume] +type = internal/alsa + +; Soundcard to be used +; Usually in the format hw:# where # is the card number +; You can find the different card numbers in `/proc/asound/cards` +master-soundcard = default +speaker-soundcard = default +headphone-soundcard = default + +; Name of the master, speaker and headphone mixers +; Use the following command to list available mixer controls: +; $ amixer scontrols | sed -nr "s/.*'([[:alnum:]]+)'.*/\1/p" +; If master, speaker or headphone-soundcard isn't the default, +; use `amixer -c # scontrols` instead where # is the number +; of the master, speaker or headphone soundcard respectively +; +; Default: Master +master-mixer = Master + +; Optionally define speaker and headphone mixers +; Default: none +;;speaker-mixer = Speaker +; Default: none +;;headphone-mixer = Headphone + +; NOTE: This is required if headphone_mixer is defined +; Use the following command to list available device controls +; $ amixer controls | sed -r "/CARD/\!d; s/.*=([0-9]+).*name='([^']+)'.*/printf '%3.0f: %s\n' '\1' '\2'/e" | sort +; You may also need to use `amixer -c # controls` as above for the mixer names +; Default: none +;;headphone-id = 9 + +; Use volume mapping (similar to amixer -M and alsamixer), where the increase in volume is linear to the ear +; Default: false +;;mapped = true + +; Interval for volume increase/decrease (in percent points) +; Default: 5 +interval = 5 + +; Available tags: +; (default) +; +; +format-volume = +format-volume-prefix =  +format-volume-prefix-padding = 1 +format-volume-prefix-background = ${color.blue} +format-volume-prefix-foreground = ${color.foreground} +format-volume-background = ${color.background-alt} +format-volume-foreground = ${color.foreground} +format-volume-overline = ${color.background} +format-volume-underline = ${color.background} + +; Available tags: +; (default) +; +; +format-muted = +format-muted-prefix =  +format-muted-prefix-padding = 1 +format-muted-prefix-background = ${color.red} +format-muted-overline = ${color.background} +format-muted-underline = ${color.background} + +; Available tokens: +; %percentage% (default) +label-volume = %percentage%% +label-volume-background = ${color.background-alt} +label-volume-padding = 1 + +; Available tokens: +; %percentage% (default +label-muted = "Muted" +label-muted-foreground = ${color.foreground} +label-muted-background = ${color.background-alt} +label-muted-padding = 1 + +; Only applies if is used +ramp-volume-0 =  +ramp-volume-1 =  +ramp-volume-2 =  +ramp-volume-3 =  +ramp-volume-4 =  +ramp-volume-background = ${color.blue} +ramp-volume-padding = 1 + +; Only applies if is used +bar-volume-format = " %fill%%indicator%%empty% " +bar-volume-width = 10 +bar-volume-gradient = false + +bar-volume-indicator = ${bar.indicator} +bar-volume-indicator-foreground = ${color.foreground} + +bar-volume-fill = ${bar.fill} +bar-volume-foreground-0 = ${color.foreground} +bar-volume-foreground-1 = ${color.foreground} +bar-volume-foreground-2 = ${color.foreground} + +bar-volume-empty = ${bar.empty} +bar-volume-empty-foreground = ${color.gray} + +; If defined, it will replace when +; headphones are plugged in to `headphone_control_numid` +; If undefined, will be used for both +; Only applies if is used +ramp-headphones-0 =  +ramp-headphones-background = ${color.blue} +ramp-headphones-padding = 1 + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/brightness] +;type = internal/xbacklight +type = internal/backlight + +; Use the following command to list available cards: +; $ ls -1 /sys/class/backlight/ +;card = intel_backlight +card = amdgpu_bl0 + +; Available tags: +;