i3->sway
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
[terminal]
|
||||
# The VT to run the greeter on. Can be "next", "current" or a number
|
||||
# designating the VT.
|
||||
vt = 1
|
||||
|
||||
# The default session, also known as the greeter.
|
||||
[default_session]
|
||||
|
||||
# `agreety` is the bundled agetty/login-lookalike. You can replace `/bin/sh`
|
||||
# with whatever you want started, such as `sway`.
|
||||
command = "start-sway --unsupported-gpu --config /etc/greetd/sway-config 2> /etc/sway/sway.log"
|
||||
|
||||
# The user to run the command as. The privileges this user must have depends
|
||||
# on the greeter. A graphical greeter may for example require the user to be
|
||||
# in the `video` group.
|
||||
user = "greeter"
|
||||
@@ -0,0 +1,2 @@
|
||||
sway
|
||||
bash
|
||||
@@ -0,0 +1,10 @@
|
||||
window {
|
||||
background-image: url("file:///usr/share/backgrounds/default.png");
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
box#body {
|
||||
border-radius: 20px;
|
||||
padding: 50px;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
# `-l` activates layer-shell mode. Notice that `swaymsg exit` will run after gtkgreet.
|
||||
exec "gtkgreet -l -s /etc/greetd/gtkgreet.css; swaymsg exit"
|
||||
|
||||
bindsym Mod4+shift+e exec swaynag \
|
||||
-t warning \
|
||||
-m 'What do you want to do?' \
|
||||
-b 'Poweroff' 'sudo poweroff' \
|
||||
-b 'Reboot' 'sudo reboot'
|
||||
|
||||
include /etc/sway/config.d/*
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
# Session
|
||||
export XDG_SESSION_TYPE=wayland
|
||||
export XDG_SESSION_DESKTOP=sway
|
||||
export XDG_CURRENT_DESKTOP=sway
|
||||
|
||||
# Environment
|
||||
# Source environmental variable from all files in PATH_ENVIRONMENT
|
||||
# file should be named *.conf and have KEY=value format use # for comment
|
||||
PATH_ENVIRONMENT=$HOME/.config/environment.d
|
||||
if [ -d "$PATH_ENVIRONMENT" ]; then
|
||||
for i in "$PATH_ENVIRONMENT"/*.conf ; do
|
||||
if [ -f "$i" ]; then
|
||||
set -a; . "$i"; set +a
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
exec sway "$@"
|
||||
Reference in New Issue
Block a user