mirror of
https://git.myvelabs.com/novnc/archlinux.git
synced 2025-12-17 19:46:20 +00:00
Tweak i3 desktop
This commit is contained in:
parent
3981271dff
commit
311ced1059
2 changed files with 8 additions and 36 deletions
|
|
@ -22,7 +22,7 @@ RUN --mount=type=cache,sharing=locked,target=/var/cache/pacman \
|
|||
&& pacman -Su --ask 4 --needed ${addpkg} \
|
||||
sudo bash bash-completion \
|
||||
tigervnc \
|
||||
i3-wm ttf-dejavu \
|
||||
i3-wm i3status dmenu konsole kate dolphin breeze-icons ttf-dejavu \
|
||||
&& pacman -Scc --ask 4 \
|
||||
&& useradd --create-home --gid users --shell /usr/bin/bash user \
|
||||
&& printf '%s\n' 'user ALL=(ALL:ALL) NOPASSWD: /usr/bin/pacman' \
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ then
|
|||
fi
|
||||
|
||||
# Create base directories
|
||||
for dir in ssh config/tigervnc
|
||||
for dir in ssh config/tigervnc config/i3
|
||||
do
|
||||
[ -d ~/.${dir} ] || mkdir -p ~/.${dir}/
|
||||
done
|
||||
|
|
@ -60,40 +60,12 @@ depth=32
|
|||
${_MYVNC_VNCSHARING}
|
||||
vncconfig
|
||||
|
||||
# i3 preferences
|
||||
mkdir -p ~/.config/i3/config.d
|
||||
cat >~/.config/i3/config <<- 'i3config'
|
||||
# Font
|
||||
font pango:DejaVu Sans Mono 8
|
||||
|
||||
# Include custom config
|
||||
include ~/.config/i3/config.d/*.conf
|
||||
|
||||
# Binds for killing application
|
||||
bindsym Mod1+Mod4+Shift+q kill
|
||||
bindsym Mod1+Mod4+Shift+f fullscreen toggle
|
||||
|
||||
# Binds for cycling workspaces
|
||||
bindsym Mod1+Mod4+Shift+Right workspace next
|
||||
bindsym Mod1+Mod4+Shift+Left workspace prev
|
||||
|
||||
# Locked mode
|
||||
mode locked {
|
||||
bindsym Mod4+Mod1+Escape mode default
|
||||
}
|
||||
bindsym Mod4+Mod1+Escape mode locked
|
||||
|
||||
# Hide bar permanently
|
||||
exec --no-startup-id i3-msg bar mode invisible
|
||||
|
||||
# Always open window in fullscreen
|
||||
for_window [all] fullscreen enable
|
||||
for_window [all] border none
|
||||
default_border none
|
||||
|
||||
# Execute startup script for webapp
|
||||
exec --no-startup-id /usr/bin/bash ~/.config/i3/startapp.sh
|
||||
i3config
|
||||
# i3 config
|
||||
mkdir -p ~/.config/i3
|
||||
curl --fail -s -L https://raw.githubusercontent.com/i3/i3/next/etc/config | sed 's/exec i3-config-wizard/# &/' > ~/.config/i3/config
|
||||
echo -e '\ngaps inner 8
|
||||
gaps outer 4
|
||||
# for_window [class="^.*"] border pixel 2' >> ~/.config/i3/config
|
||||
|
||||
# Launch Tigervnc
|
||||
/usr/bin/dbus-launch vncserver :0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue