A spin of Alpine Linux for my personal usage

Compare changes

Choose any two refs to compare.

Changed files
+189 -30
config
scripts
config/dconf/user

This is a binary file and will not be displayed.

+20
config/ibus-anthy/engines.xml
··· 1 + <?xml version="1.0" encoding="utf-8"?><engines> 2 + <engine> 3 + <name>anthy</name> 4 + <language>ja</language> 5 + <license>GPL</license> 6 + <author>Peng Huang &lt;shawn.p.huang@gmail.com&gt;</author> 7 + <icon>ibus-anthy</icon> 8 + <layout>default</layout> 9 + <layout_variant></layout_variant> 10 + <layout_option></layout_option> 11 + <longname translatable="no">Anthy</longname> 12 + <description>Anthy Input Method</description> 13 + <rank>99</rank> 14 + <!-- <hotkeys>Control+space,Zenkaku_Hankaku</hotkeys> --> 15 + <symbol>あ</symbol> 16 + <icon_prop_key>InputMode</icon_prop_key> 17 + <version>1.5.17</version> 18 + <textdomain>ibus-anthy</textdomain> 19 + </engine> 20 + </engines>
+3
config/niri/config.kdl
··· 90 90 spawn-at-startup "pipewire" 91 91 spawn-at-startup "wireplumber" 92 92 spawn-at-startup "pipewire-pulse" 93 + spawn-at-startup "mpd" 93 94 spawn-at-startup "waybar" 94 95 spawn-at-startup "mako" 95 96 spawn-at-startup "xwayland-satellite" 97 + spawn-at-startup "ibus start --type wayland" 98 + 96 99 spawn-sh-at-startup "swaybg -m fill -i $(find ~/Pictures/Wallpapers/ -type f | shuf -n1)" 97 100 98 101 hotkey-overlay {
+18 -19
config/waybar/config.jsonc
··· 1 + [ 1 2 { 3 + "include": ["modules.jsonc"], 2 4 "layer": "top", 3 - "modules-left": ["niri/workspaces"], 4 - "modules-center": ["niri/window"], 5 - "modules-right": ["wireplumber", "network", "battery", "clock"], 6 - "wireplumber": { 7 - "format": "{volume}% {icon}", 8 - "format-muted": "󰖁", 9 - "format-icons": ["󰕿", "󰖀", "󰕾"] 10 - }, 11 - "network": { 12 - "interface": "wlan0", 13 - "format": "{essid}", 14 - "format-disconnected": "disconnected" 15 - }, 16 - "battery": { 17 - "format": "{capacity}% {icon}", 18 - "format-icons": ["󰂃", "󰁽", "󰁿", "󰂁", "󰁹"] 19 - }, 20 - "clock": { 21 - "format-alt": "{:%a, %d. %b %H:%M}" 5 + "name": "mini-bar", 6 + "modules-left": ["custom/aux#custom-aux", "niri/workspaces"], 7 + "modules-center": ["clock"], 8 + "modules-right": ["battery"], 9 + "niri/workspaces": { 10 + "current-only": true 22 11 } 12 + }, 13 + { 14 + "include": ["modules.jsonc"], 15 + "layer": "top", 16 + "name": "auxilary-bar", 17 + "start_hidden": true, 18 + "modules-left": ["custom/aux#custom-aux", "niri/workspaces"], 19 + "modules-center": ["mpd"], 20 + "modules-right": ["tray", "wireplumber", "network", "battery", "clock", "custom/power#custom-power"], 23 21 } 22 + ]
+40
config/waybar/modules.jsonc
··· 1 + { 2 + "custom/aux#custom-aux": { 3 + "format": "", 4 + "on-click": "killall -SIGUSR1 waybar" 5 + }, 6 + "mpd": { 7 + "format": "{artist} - {album} - {title}", 8 + "format-stopped": "" 9 + }, 10 + "wireplumber": { 11 + "format": "{volume}% {icon}", 12 + "format-muted": "󰖁", 13 + "format-icons": ["󰕿", "󰖀", "󰕾"] 14 + }, 15 + "network": { 16 + "interface": "wlan0", 17 + "format": "{essid}", 18 + "format-disconnected": "disconnected" 19 + }, 20 + "battery": { 21 + "format": "{capacity}% {icon}", 22 + "format-icons": ["󰂃", "󰁽", "󰁿", "󰂁", "󰁹"] 23 + }, 24 + "clock": { 25 + "format-alt": "{:%a, %d. %b %H:%M}" 26 + }, 27 + "custom/power#custom-power": { 28 + "format": "󰐥", 29 + "tooltip": false, 30 + "menu": "on-click", 31 + "menu-file": "~/.config/waybar/power_menu.xml", 32 + "menu-actions": { 33 + "lock": "swaylock", 34 + "suspend": "loginctl suspend", 35 + "logout": "niri msg action quit", 36 + "poweroff": "loginctl poweroff", 37 + "reboot": "loginctl reboot" 38 + } 39 + } 40 + }
+36
config/waybar/power_menu.xml
··· 1 + <?xml version="1.0" encoding="UTF-8"?> 2 + <interface> 3 + <object class="GtkMenu" id="menu"> 4 + <child> 5 + <object class="GtkMenuItem" id="lock"> 6 + <property name="label">󰌾 Lock</property> 7 + </object> 8 + </child> 9 + <child> 10 + <object class="GtkMenuItem" id="logout"> 11 + <property name="label">󰗽 Log Out</property> 12 + </object> 13 + </child> 14 + <child> 15 + <object class="GtkSeparatorMenuItem" id="delimeter1" /> 16 + </child> 17 + <child> 18 + <object class="GtkMenuItem" id="suspend"> 19 + <property name="label">󰤄 Suspend</property> 20 + </object> 21 + </child> 22 + <child> 23 + <object class="GtkSeparatorMenuItem" id="delimeter2" /> 24 + </child> 25 + <child> 26 + <object class="GtkMenuItem" id="poweroff"> 27 + <property name="label">󰐥 Power Off</property> 28 + </object> 29 + </child> 30 + <child> 31 + <object class="GtkMenuItem" id="reboot"> 32 + <property name="label">󱎝 Reboot</property> 33 + </object> 34 + </child> 35 + </object> 36 + </interface>
+51 -4
config/waybar/style.css
··· 1 1 @import "flexoki-light.css"; 2 2 3 + 3 4 * { 4 5 border: none; 5 6 border-radius: 0; ··· 14 15 color: @tx; 15 16 } 16 17 17 - tooltip { 18 + tooltip, 19 + menu { 18 20 background: @bg-2; 19 - border: 1px solid @ui-2; 21 + border: 3px solid @ui-2; 22 + color: @tx; 23 + } 24 + 25 + tooltip label, 26 + menuitem { 27 + color: @tx; 20 28 } 21 29 22 - tooltip label { 30 + menuitem:hover { 31 + background-color: @gr-2; 32 + } 33 + 34 + separatormenuitem { 35 + padding: 10px 0; 36 + } 37 + 38 + 39 + #window, 40 + #mpd, 41 + #tray{ 42 + padding: 5px 10px; 43 + background: @ui; 44 + border-bottom: 3px solid @ui-3; 23 45 color: @tx; 24 46 } 25 47 48 + #custom-aux, 26 49 #wireplumber, 27 50 #network, 28 51 #battery, 29 52 #clock, 53 + #custom-power, 30 54 #workspaces button { 31 55 padding: 5px 10px; 32 56 background: @gr-2; ··· 34 58 color: @tx; 35 59 } 36 60 61 + #custom-aux { 62 + background-color: @cy-2; 63 + border-bottom-color: @cy; 64 + color: @tx; 65 + 66 + padding-right: 16px; /* Accounts for the nerd font icon being wider than usual. */ 67 + margin-right: 4px; 68 + } 69 + 70 + #custom-aux:hover { 71 + background-color: @bl-2; 72 + border-bottom-color: @bl; 73 + } 74 + 75 + #window, 76 + #tray, 37 77 #wireplumber, 38 78 #network, 39 79 #battery, 40 - #clock { 80 + #clock, 81 + #custom-power { 41 82 margin-left: 4px; 83 + } 84 + 85 + window#waybar.empty #window, 86 + #mpd.stopped { 87 + background-color: transparent; 88 + border-color: transparent; 42 89 } 43 90 44 91 #workspaces button {
+14 -2
install.sh
··· 30 30 niri \ 31 31 font-dejavu \ 32 32 font-noto-all \ 33 + font-noto-cjk \ 33 34 nerd-fonts-all \ 34 35 alacritty \ 35 36 nautilus \ ··· 49 50 apk add -y \ 50 51 pipewire \ 51 52 wireplumber \ 52 - pipewire-pulse 53 + pipewire-pulse \ 54 + mpd 55 + 56 + apk add -y \ 57 + ibus \ 58 + anthy \ 59 + ibus-anthy 53 60 54 61 apk add xwayland-satellite --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ 55 62 ··· 71 78 md.obsidian.Obsidian \ 72 79 io.github.htkhiem.Euphonica \ 73 80 org.pulseaudio.pavucontrol \ 74 - de.schmidhuberj.tubefeeder 81 + de.schmidhuberj.tubefeeder \ 82 + org.kde.kid3 75 83 84 + # Flatpak configuration 76 85 # Allow Fractal to access gnome-keyring 77 86 flatpak --user override --talk-name=org.freedesktop.secrets org.gnome.Fractal 87 + # Allow Kid3 to access ~/Music/ 88 + flatpak --user override --filesystem=~/Music/ org.kde.kid3 78 89 79 90 # Icon theme (La Capitaine) 80 91 mkdir -p ~/.icons/ ··· 83 94 cd - 84 95 85 96 gsettings set org.gnome.desktop.interface icon-theme 'la-capitaine-icon-theme' 97 + gsettings set org.gnome.desktop.interface cursor-theme 'capitaine-cursors-dark' 86 98 87 99 # Wallpaper 88 100 mkdir -p ~/Pictures/Wallpapers/
+7 -5
scripts/rebuild.sh
··· 3 3 rm -rf config 4 4 mkdir config 5 5 cp -r \ 6 - ~/.config/alacritty \ 7 - ~/.config/fuzzel \ 8 - ~/.config/mako \ 9 - ~/.config/niri \ 10 - ~/.config/waybar \ 6 + ~/.config/alacritty/ \ 7 + ~/.config/dconf/ \ 8 + ~/.config/fuzzel/ \ 9 + ~/.config/ibus-anthy/ \ 10 + ~/.config/mako/ \ 11 + ~/.config/niri/ \ 12 + ~/.config/waybar/ \ 11 13 ./config/ 12 14 13 15 cp ~/.profile ./profile