first commit

This commit is contained in:
Alexander Zhirov 2022-05-20 16:51:57 +03:00
commit 62434b1393
11 changed files with 30 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/build/src

BIN
bin/mswitch Executable file

Binary file not shown.

3
bin/mswitchd Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
systemctl --user $1 mswitch.service

2
build/finalize Executable file
View File

@ -0,0 +1,2 @@
echo "export XDG_RUNTIME_DIR=/run/user/\$(id -u)" >> /etc/skel/.profile
echo "systemctl --no-block --user start xsession.target" >> /etc/skel/.xinitrc

9
build/install Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
export PACKAGE=mswitch
export PORTS=$PACKAGE
repackage -e
returnval=$?
exit $returnval

0
build/installed Executable file
View File

1
dependencies Executable file
View File

@ -0,0 +1 @@
base

View File

@ -0,0 +1 @@
/etc/systemd/user/mswitch.service

1
etc/skel/mswitch.log Symbolic link
View File

@ -0,0 +1 @@
/var/log/mswitch.log

View File

@ -0,0 +1,9 @@
[Unit]
Description=mswitch
PartOf=graphical-session.target
[Service]
ExecStart=/usr/bin/mswitch
[Install]
WantedBy=xsession.target

View File

@ -0,0 +1,3 @@
[Unit]
Description=X session managed by systemd
BindsTo=graphical-session.target