Starting a sway config.

This commit is contained in:
Tom Alexander
2022-10-17 18:47:21 -04:00
parent f0b917cba9
commit 079cabb547
9 changed files with 87 additions and 21 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 638 KiB

View File

@@ -0,0 +1,26 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# set $mod Mod1
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: it's recommended that you pass the final command to sway
# set $menu dmenu_path | dmenu | xargs swaymsg exec
set $menu /usr/local/bin/wofi --show drun --gtk-dark
bindsym $mod+grave exec $term
include ~/.config/sway/config.d/*.conf

View File

@@ -0,0 +1,2 @@
--enable-features=UseOzonePlatform
--ozone-platform=wayland

View File

@@ -7,6 +7,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [[ ! -v XDG_RUNTIME_DIR ]]; then
export XDG_RUNTIME_DIR=$(mktemp -d)
chmod 0700 "$XDG_RUNTIME_DIR"
fi
sway |& tee $HOME/.config/swaylog
exec sway -d &> $HOME/.config/swaylog

View File

@@ -5,4 +5,4 @@ set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
sway |& tee $HOME/.config/swaylog
exec sway -d &> $HOME/.config/swaylog

View File

@@ -0,0 +1,2 @@
[mode=do-not-disturb]
invisible=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 639 KiB

View File

@@ -0,0 +1,7 @@
# [screencast]
# output_name=HDMI-A-1
# max_fps=30
# exec_before=disable_notifications.sh
# exec_after=enable_notifications.sh
# chooser_type=simple
# chooser_cmd=slurp -f %o -or