Install packages listed, added sway service

This commit is contained in:
Dejvino 2021-01-10 22:21:55 +01:00
parent dbac2f1ba5
commit e9a63d4128
7 changed files with 106 additions and 3 deletions

View File

@ -23,12 +23,33 @@ Linux UI customized to resemble a Fallout Pip-Boy. To be used with the PINE64 Pi
## Install ## Install
```bash ```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 git clone --recurse-submodules https://git.dejvino.cz/dejvino/PinePhoneBoyOS
cd PinePhoneBoyOS cd PinePhoneBoyOS
./convert_icons.sh ./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
View 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

View File

@ -313,8 +313,8 @@ exec "portfolio-fm"
for_window [app_id="portfolio-fm"] move workspace $WINV for_window [app_id="portfolio-fm"] move workspace $WINV
# DATA # DATA
exec "epiphany" exec "firefox"
for_window [app_id="epiphany"] move workspace $WDATA for_window [app_id="firefox"] move workspace $WDATA; boarder none
# MAP # MAP
exec "gnome-maps" exec "gnome-maps"

View File

@ -94,7 +94,7 @@
{ {
"layer": "top", "layer": "top",
"position": "left", "position": "left",
"width": 15, "width": 60,
"output": "DSI-1", "output": "DSI-1",
"modules-left": [ "modules-left": [
@ -102,6 +102,7 @@
"memory", "memory",
//"battery", // broken for some reason... //"battery", // broken for some reason...
"custom/battery", "custom/battery",
"idle_inhibitor",
"temperature", "temperature",
"disk", "disk",
"backlight", "backlight",
@ -124,6 +125,14 @@
"format": "⚛ {}" "format": "⚛ {}"
}, },
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"custom/kill": { "custom/kill": {
"on-click": "swaymsg kill", "on-click": "swaymsg kill",
"format": "☠" "format": "☠"

View File

@ -27,6 +27,7 @@
#network, #network,
#pulseaudio, #pulseaudio,
#temperature, #temperature,
#idle_inhibitor,
#custom-battery, #custom-battery,
#custom-alsa, #custom-alsa,
#custom-kill, #custom-kill,
@ -85,6 +86,13 @@
color: red; color: red;
} }
#idle_inhibitor.activated {
color: orange;
}
#idle_inhibitor.deactivated {
color: green;
}
#clock.date { #clock.date {
font-weight: bold; font-weight: bold;
} }

View File

@ -0,0 +1,4 @@
MOZ_ENABLE_WAYLAND=1
GDK_GL=gles
QT_WAYLAND_DISABLE_WINDOWDECORATION=1
QT_QPA_PLATFORM=wayland

View 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