Install packages listed, added sway service
This commit is contained in:
parent
dbac2f1ba5
commit
e9a63d4128
21
README.md
21
README.md
@ -23,12 +23,33 @@ Linux UI customized to resemble a Fallout Pip-Boy. To be used with the PINE64 Pi
|
||||
|
||||
## Install
|
||||
```bash
|
||||
sudo pacman -S \
|
||||
sway swaylock swayidle swaybg waybar \
|
||||
termite termite-terminfo \
|
||||
htop dialog \
|
||||
imv \
|
||||
ttf-font-awesome unicode-emoji \
|
||||
portfolio-fm \
|
||||
mplayer pavucontrol \
|
||||
xfmpc mpd mpc \
|
||||
git
|
||||
|
||||
git clone --recurse-submodules https://git.dejvino.cz/dejvino/PinePhoneBoyOS
|
||||
|
||||
cd PinePhoneBoyOS
|
||||
|
||||
./convert_icons.sh
|
||||
|
||||
sudo cp -R usr/* /usr/
|
||||
sudo cp -R etc/* /etc/
|
||||
|
||||
mkdir -p ~/.config
|
||||
cp config/* ~/.config/
|
||||
cp config/.dialogrc ~/.dialogrc
|
||||
cp config/.menuoptions ~/.menuoptions
|
||||
|
||||
sudo systemctl disable phosh || echo "Needed only if you still have phosh installed."
|
||||
sudo systemctl enable --now sway
|
||||
...
|
||||
```
|
||||
|
||||
|
7
config/.menuoptions
Normal file
7
config/.menuoptions
Normal file
@ -0,0 +1,7 @@
|
||||
termite Terminal
|
||||
xfmpc "Music Player"
|
||||
firefox "Web Browser"
|
||||
megapixels "Camera"
|
||||
portfolio-fm "File Manager"
|
||||
"sudo reboot" Restart
|
||||
"sudo poweroff" Shutdown
|
@ -313,8 +313,8 @@ exec "portfolio-fm"
|
||||
for_window [app_id="portfolio-fm"] move workspace $WINV
|
||||
|
||||
# DATA
|
||||
exec "epiphany"
|
||||
for_window [app_id="epiphany"] move workspace $WDATA
|
||||
exec "firefox"
|
||||
for_window [app_id="firefox"] move workspace $WDATA; boarder none
|
||||
|
||||
# MAP
|
||||
exec "gnome-maps"
|
||||
|
@ -94,7 +94,7 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "left",
|
||||
"width": 15,
|
||||
"width": 60,
|
||||
"output": "DSI-1",
|
||||
|
||||
"modules-left": [
|
||||
@ -102,6 +102,7 @@
|
||||
"memory",
|
||||
//"battery", // broken for some reason...
|
||||
"custom/battery",
|
||||
"idle_inhibitor",
|
||||
"temperature",
|
||||
"disk",
|
||||
"backlight",
|
||||
@ -124,6 +125,14 @@
|
||||
"format": "⚛ {}"
|
||||
},
|
||||
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
|
||||
"custom/kill": {
|
||||
"on-click": "swaymsg kill",
|
||||
"format": "☠"
|
||||
|
@ -27,6 +27,7 @@
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#temperature,
|
||||
#idle_inhibitor,
|
||||
#custom-battery,
|
||||
#custom-alsa,
|
||||
#custom-kill,
|
||||
@ -85,6 +86,13 @@
|
||||
color: red;
|
||||
}
|
||||
|
||||
#idle_inhibitor.activated {
|
||||
color: orange;
|
||||
}
|
||||
#idle_inhibitor.deactivated {
|
||||
color: green;
|
||||
}
|
||||
|
||||
#clock.date {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
4
etc/systemd/system/sway.env
Normal file
4
etc/systemd/system/sway.env
Normal file
@ -0,0 +1,4 @@
|
||||
MOZ_ENABLE_WAYLAND=1
|
||||
GDK_GL=gles
|
||||
QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||
QT_QPA_PLATFORM=wayland
|
54
usr/lib/systemd/system/sway.service
Normal file
54
usr/lib/systemd/system/sway.service
Normal file
@ -0,0 +1,54 @@
|
||||
[Unit]
|
||||
Description=Sway Window Manager
|
||||
Documentation=
|
||||
|
||||
# Make sure we are started after logins are permitted.
|
||||
After=systemd-user-sessions.service
|
||||
# If Plymouth is used, we want to start when it is on its way out.
|
||||
After=plymouth-quit-wait.service
|
||||
|
||||
# D-Bus is necessary for contacting logind. Logind is required.
|
||||
Wants=dbus.socket
|
||||
After=dbus.socket
|
||||
|
||||
# This scope is created by pam_systemd when logging in as the user.
|
||||
# This directive is a workaround to a systemd bug, where the setup of the
|
||||
# user session by PAM has some race condition, possibly leading to a failure.
|
||||
# See README for more details.
|
||||
After=session-c1.scope
|
||||
|
||||
# Since we are part of the graphical session, make sure we are started before
|
||||
# it is complete.
|
||||
Before=graphical.target
|
||||
|
||||
# Prevent starting on systems without virtual consoles
|
||||
ConditionPathExists=/dev/tty0
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/sway
|
||||
EnvironmentFile=/etc/systemd/system/sway.env
|
||||
TimeoutStartSec=30
|
||||
User=1000
|
||||
PAMName=login
|
||||
WorkingDirectory=~
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
||||
# A virtual terminal is needed.
|
||||
TTYPath=/dev/tty7
|
||||
TTYReset=yes
|
||||
TTYVHangup=yes
|
||||
TTYVTDisallocate=yes
|
||||
|
||||
# Fail to start if not controlling the tty.
|
||||
StandardInput=tty-fail
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
# Log this user with utmp, letting it show up with commands 'w' and 'who'.
|
||||
UtmpIdentifier=tty7
|
||||
UtmpMode=user
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
|
Loading…
Reference in New Issue
Block a user