Skip to content

Instantly share code, notes, and snippets.

@kitten
Last active October 6, 2022 01:54
Show Gist options
  • Save kitten/c3125eaf9f2d32197d08f34826d7d43c to your computer and use it in GitHub Desktop.
Save kitten/c3125eaf9f2d32197d08f34826d7d43c to your computer and use it in GitHub Desktop.
Arch Files
# /etc/systemd/system/ac.target
[Unit]
Description=On AC power
DefaultDependencies=no
StopWhenUnneeded=yes
# /etc/systemd/system/battery.target
[Unit]
Description=On battery power
DefaultDependencies=no
StopWhenUnneeded=yes
[/]
appicon-margin=4
appicon-padding=10
click-action='CYCLE-MIN'
dot-color-1='#5294e2'
dot-color-2='#5294e2'
dot-color-3='#5294e2'
dot-color-4='#5294e2'
dot-color-override=true
dot-color-unfocused-1='#5294e2'
dot-color-unfocused-2='#5294e2'
dot-color-unfocused-3='#5294e2'
dot-color-unfocused-4='#5294e2'
dot-color-unfocused-different=false
dot-position='BOTTOM'
dot-size=2
dot-style-focused='METRO'
dot-style-unfocused='METRO'
focus-highlight=true
focus-highlight-color='#eeeeec'
focus-highlight-opacity=15
hotkeys-overlay-combo='TEMPORARILY'
intellihide=true
intellihide-hide-from-windows=true
intellihide-show-in-fullscreen=true
intellihide-use-pressure=true
leftbox-padding=-1
leftbox-size=0
location-clock='STATUSLEFT'
middle-click-action='LAUNCH'
multi-monitors=false
panel-position='BOTTOM'
panel-size=40
secondarymenu-contains-showdetails=false
shift-click-action='MINIMIZE'
shift-middle-click-action='LAUNCH'
show-activities-button=false
show-appmenu=false
show-show-apps-button=false
show-showdesktop-button=true
show-tooltip=false
show-window-previews=false
status-icon-padding=8
stockgs-keep-dash=false
taskbar-position='LEFTPANEL'
trans-bg-color='#000000'
trans-panel-opacity=0.84999999999999998
trans-use-custom-bg=true
trans-use-custom-gradient=false
trans-use-custom-opacity=true
trans-use-dynamic-opacity=false
tray-padding=-1
tray-size=14
https://github.com/Jguer/yay
gnome-terminal
gnome-tweaks
gnome-themes-extra
gnome-shell-extensions
gnome-shell-extension-no-topleft-hot-corner
gnome-shell-extension-dash-to-panel-git
noto-fonts-cjk
noto-fonts-emoji
noto-fonts-extra
ttf-bitstream-vera
ttf-dejavu
ttf-liberation
ttf-mac-fonts
ttf-twemoji-color
nvidia-dkms
gdm
gdm-plymouth
plymouth
pop-icon-theme-bin
capitaine-cursors
https://github.com/yannick-cn/mycentos/tree/83687da/themes/Sierra-dark-solid
terminus-font
ufw
gufw
# /etc/pacman.d/mirrorlist #
Server = http://ftp.snt.utwente.nl/pub/os/linux/archlinux/$repo/os/$arch
Server = http://mirror.ams1.nl.leaseweb.net/archlinux/$repo/os/$arch
Server = http://mirror.fra10.de.leaseweb.net/archlinux/$repo/os/$arch
Server = http://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch
Server = http://ftp.acc.umu.se/mirror/archlinux/$repo/os/$arch
Server = http://archmirror.hbit.sztaki.hu/archlinux/$repo/os/$arch
Server = http://mirror.united-gameserver.de/archlinux/$repo/os/$arch
Server = http://archlinux.mirrors.benatherton.com/$repo/os/$arch
Server = http://mirror.one.com/archlinux/$repo/os/$arch
Server = http://archlinux.mirror.kangaroot.net/$repo/os/$arch
Server = http://archlinux.mirror.pkern.at/$repo/os/$arch
Server = http://archlinux.mailtunnel.eu/$repo/os/$arch
Server = http://mirror.oldsql.cc/archlinux/$repo/os/$arch
Server = http://archlinux.uk.mirror.allworldit.com/archlinux/$repo/os/$arch
Server = http://archlinux.thaller.ws/$repo/os/$arch
Server = http://mirror.wtnet.de/arch/$repo/os/$arch
Server = http://mirrors.dotsrc.org/archlinux/$repo/os/$arch
Server = http://archlinux.polymorf.fr/$repo/os/$arch
Server = http://mirrors.manchester.m247.com/arch-linux/$repo/os/$arch
Server = http://archlinux.honkgong.info/$repo/os/$arch
Server = http://mirror.23media.com/archlinux/$repo/os/$arch
Server = http://archlinux.iskon.hr/$repo/os/$arch
Server = http://mirrors.n-ix.net/archlinux/$repo/os/$arch
Server = http://arch.tamcore.eu/$repo/os/$arch
Server = http://ftp.fau.de/archlinux/$repo/os/$arch
Server = http://arch.jensgutermuth.de/$repo/os/$arch
Server = http://mirror.dkm.cz/archlinux/$repo/os/$arch
Server = http://pkg.adfinis-sygroup.ch/archlinux/$repo/os/$arch
Server = http://mirrors.atviras.lt/archlinux/$repo/os/$arch
Server = http://mirror.dal10.us.leaseweb.net/archlinux/$repo/os/$arch
Server = http://ftp.sh.cvut.cz/arch/$repo/os/$arch
Server = http://ftp.lysator.liu.se/pub/archlinux/$repo/os/$arch
Server = http://mirror.ubrco.de/archlinux/$repo/os/$arch
Server = http://mirror.sfo12.us.leaseweb.net/archlinux/$repo/os/$arch
Server = http://archmirror.nebulanet.cc/$repo/os/$arch
Server = http://mirror.orbit-os.com/archlinux/$repo/os/$arch
Server = http://archlinux.mirror.ba/$repo/os/$arch
Server = http://arlm.tyzoid.com/$repo/os/$arch
Server = http://arch.midov.pl/arch/$repo/os/$arch
Server = http://mirrors.uni-plovdiv.net/archlinux/$repo/os/$arch
Server = http://mirror.cs.pitt.edu/archlinux/$repo/os/$arch
Server = http://mirror.f4st.host/archlinux/$repo/os/$arch
Server = http://mirrors.niyawe.de/archlinux/$repo/os/$arch
Server = http://mirror.neuf.no/archlinux/$repo/os/$arch
Server = http://ftp.rnl.tecnico.ulisboa.pt/pub/archlinux/$repo/os/$arch
Server = http://archlinux.mirrors.uk2.net/$repo/os/$arch
Server = http://packages.oth-regensburg.de/archlinux/$repo/os/$arch
Server = http://mirror.aur.rocks/$repo/os/$arch
Server = http://gluttony.sin.cvut.cz/arch/$repo/os/$arch
Server = http://quantum-mirror.hu/mirrors/pub/archlinux/$repo/os/$arch
Server = http://mirror.system.is/arch/$repo/os/$arch
Server = http://archlinux.dynamict.se/$repo/os/$arch
Server = http://archlinux.mirror.pcextreme.nl/$repo/os/$arch
Server = http://mirror.reisenbauer.ee/archlinux/$repo/os/$arch
Server = http://arch.mirror.far.fi/$repo/os/$arch
Server = http://ftp.nluug.nl/os/Linux/distr/archlinux/$repo/os/$arch
Server = http://ftp.myrveln.se/pub/linux/archlinux/$repo/os/$arch
Server = http://arch.mirror.constant.com/$repo/os/$arch
Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
Server = http://mirror.wdc1.us.leaseweb.net/archlinux/$repo/os/$arch
Server = http://mirrors.acm.wpi.edu/archlinux/$repo/os/$arch
Server = http://mirror.internode.on.net/pub/archlinux/$repo/os/$arch
Server = http://mirror.cyberbits.eu/archlinux/$repo/os/$arch
Server = http://mirror.kaminski.io/archlinux/$repo/os/$arch
Server = http://ftp.byfly.by/pub/archlinux/$repo/os/$arch
Server = http://repo.ialab.dsu.edu/archlinux/$repo/os/$arch
Server = http://mirrors.xtom.com/archlinux/$repo/os/$arch
Server = http://mirror.lty.me/archlinux/$repo/os/$arch
Server = http://archlinux.za.mirror.allworldit.com/archlinux/$repo/os/$arch
Server = http://br.mirror.archlinux-br.org/$repo/os/$arch
Server = http://mirror.thomaskilian.net/archlinux/$repo/os/$arch
Server = http://mirror.selfnet.de/archlinux/$repo/os/$arch
Server = http://mirror.vpsfree.cz/archlinux/$repo/os/$arch
Server = http://mirror.sergal.org/archlinux/$repo/os/$arch
Server = http://mirror.pseudoform.org/$repo/os/$arch
Server = http://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch
Server = http://mirror.dc02.hackingand.coffee/arch/$repo/os/$arch
Server = http://archlinux.c3sl.ufpr.br/$repo/os/$arch
Server = http://arch.mirror.square-r00t.net/$repo/os/$arch
Server = http://mirrors.lug.mtu.edu/archlinux/$repo/os/$arch
Server = http://mirror.xtom.com.hk/archlinux/$repo/os/$arch
Server = http://ftp.swin.edu.au/archlinux/$repo/os/$arch
Server = http://mirrors.kurnode.com/archlinux/$repo/os/$arch
Server = http://shadow.ind.ntou.edu.tw/archlinux/$repo/os/$arch
Server = http://ftp.tku.edu.tw/Linux/ArchLinux/$repo/os/$arch
Server = http://www.caco.ic.unicamp.br/archlinux/$repo/os/$arch
Server = http://mirrors.neusoft.edu.cn/archlinux/$repo/os/$arch
Server = http://ftp.iinet.net.au/pub/archlinux/$repo/os/$arch
Server = http://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
Server = http://ftp.yzu.edu.tw/Linux/archlinux/$repo/os/$arch
# /etc/systemd/system/powerdown.service
[Unit]
Description=Set power state to power-saving on battery
[Service]
Type=oneshot
ExecStart=/bin/bash -c "echo 2 | tee '/sys/devices/platform/MSHW0107:00/perf_mode'; echo 'PERFORMANCE STATE set to battery saver'"
[Install]
WantedBy=battery.target
# /etc/udev/rules.d/99-powertargets.rules
SUBSYSTEM=="power_supply", KERNEL=="ADP1", ATTR{online}=="0", RUN+="/usr/sbin/systemctl start battery.target"
SUBSYSTEM=="power_supply", KERNEL=="ADP1", ATTR{online}=="1", RUN+="/usr/sbin/systemctl start ac.target"
# /etc/systemd/system/powerup.service
[Unit]
Description=Set power state to best on AC
[Service]
Type=oneshot
ExecStart=/bin/bash -c "echo 4 | tee '/sys/devices/platform/MSHW0107:00/perf_mode'; echo 'PERFORMANCE STATE set to best'"
[Install]
WantedBy=ac.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment