1
0

sway config

This commit is contained in:
dtb 2024-05-06 00:33:34 -06:00
parent 81084e0b27
commit 468b6021a9
2 changed files with 94 additions and 23 deletions

View File

@ -6,13 +6,9 @@ all: $(TARGETS)
TARGETS = \ TARGETS = \
$(HOME)/.aliases \ $(HOME)/.aliases \
$(HOME)/.config/bspwm/bspwmrc \
$(HOME)/.config/helix/config.toml \ $(HOME)/.config/helix/config.toml \
$(HOME)/.config/helix/themes/trinity.toml \ $(HOME)/.config/helix/themes/trinity.toml \
$(HOME)/.config/nvim/init.vim \ $(HOME)/.config/sway/config \
$(HOME)/.config/sxhkd/sxhkdrc \
$(HOME)/.config/sxmo/profile \
$(HOME)/.ctwmrc \
$(HOME)/.env \ $(HOME)/.env \
$(HOME)/.gitconfig \ $(HOME)/.gitconfig \
$(HOME)/.nethackrc \ $(HOME)/.nethackrc \
@ -23,65 +19,69 @@ TARGETS = \
$(HOME)/.config/youtube-dl/youtube-dl.conf $(HOME)/.config/youtube-dl/youtube-dl.conf
$(HOME)/.aliases: sh/aliases $(HOME)/.aliases: sh/aliases
ln -s sh/aliases $(HOME)/.aliases ln -s sh/aliases $@
$(HOME)/.config/bspwm/bspwmrc: bspwm/bspwmrc $(HOME)/.config/bspwm/bspwmrc: bspwm/bspwmrc
mkdir -p $(HOME)/.config/bspwm/ mkdir -p $(HOME)/.config/bspwm/
cp bspwm/bspwmrc $(HOME)/.config/bspwm/bspwmrc cp bspwm/bspwmrc $@
$(HOME)/.config/i3/config: i3/config $(HOME)/.config/i3/config: i3/config
mkdir -p $(HOME)/.config/i3/ mkdir -p $(HOME)/.config/i3/
cp i3/config $(HOME)/.config/i3/config cp i3/config $@
$(HOME)/.config/i3status/config: i3status/config $(HOME)/.config/i3status/config: i3status/config
mkdir -p $(HOME)/.config/i3status/ mkdir -p $(HOME)/.config/i3status/
cp i3status/config $(HOME)/.config/i3status/config cp i3status/config $@
$(HOME)/.config/helix/config.toml: helix/config.toml $(HOME)/.config/helix/config.toml: helix/config.toml
mkdir -p $(HOME)/.config/helix mkdir -p $(HOME)/.config/helix
ln -s helix/config.toml $(HOME)/.config/helix/config.toml ln -s helix/config.toml $@
$(HOME)/.config/helix/themes/trinity.toml: helix/trinity.toml $(HOME)/.config/helix/themes/trinity.toml: helix/trinity.toml
mkdir -p $(HOME)/.config/helix/themes mkdir -p $(HOME)/.config/helix/themes
ln -s helix/trinity.toml $(HOME)/.config/helix/themes/trinity.toml ln -s helix/trinity.toml $@
$(HOME)/.config/nvim/init.vim: nvim/init.vim $(HOME)/.config/nvim/init.vim: nvim/init.vim
mkdir -p $(HOME)/.config/nvim/ mkdir -p $(HOME)/.config/nvim/
ln -s nvim/init.vim $(HOME)/.config/nvim/init.vim ln -s nvim/init.vim $@
$(HOME)/.config/sxhkd/sxhkdrc: sxhkd/sxhkdrc $(HOME)/.config/sxhkd/sxhkdrc: sxhkd/sxhkdrc
mkdir -p $(HOME)/.config/sxhkd/ mkdir -p $(HOME)/.config/sxhkd/
cp sxhkd/sxhkdrc $(HOME)/.config/sxhkd/sxhkdrc cp sxhkd/sxhkdrc $@
$(HOME)/.config/sway/config: sway/config
mkdir -p $(HOME)/.config/sway/
ln -s sway/config $@
# cannot be a symlink # cannot be a symlink
$(HOME)/.config/sxmo/profile: sxmo/profile $(HOME)/.config/sxmo/profile: sxmo/profile
mkdir -p $(HOME)/.config/sxmo/ mkdir -p $(HOME)/.config/sxmo/
cp sxmo/profile $(HOME)/.config/sxmo/profile cp sxmo/profile $@
$(HOME)/.ctwmrc: ctwm/ctwmrc $(HOME)/.ctwmrc: ctwm/ctwmrc
cp ctwm/ctwmrc $(HOME)/.ctwmrc cp ctwm/ctwmrc $@
$(HOME)/.env: sh/env $(HOME)/.env: sh/env
ln -s sh/env $(HOME)/.env ln -s sh/env $@
$(HOME)/.gitconfig: git/gitconfig $(HOME)/.gitconfig: git/gitconfig
cp git/gitconfig $(HOME)/.gitconfig cp git/gitconfig $@
$(HOME)/.nethackrc: nethack/nethackrc $(HOME)/.nethackrc: nethack/nethackrc
ln -s nethack/nethackrc $(HOME)/.nethackrc ln -s nethack/nethackrc $@
$(HOME)/.profile: sh/profile $(HOME)/.profile: sh/profile
ln -s sh/profile $(HOME)/.profile ln -s sh/profile $@
$(HOME)/.vimrc: vim/vimrc $(HOME)/.vimrc: vim/vimrc
ln -s vim/vimrc $(HOME)/.vimrc ln -s vim/vimrc $@
$(HOME)/.xinitrc: xinit/xinitrc $(HOME)/.xinitrc: xinit/xinitrc
ln -s xinit/xinitrc $(HOME)/.xinitrc ln -s xinit/xinitrc $@
$(HOME)/.Xresources: X/Xresources $(HOME)/.Xresources: X/Xresources
ln -s X/Xresources $(HOME)/.Xresources ln -s X/Xresources $@
$(HOME)/.config/youtube-dl/youtube-dl.conf: youtube-dl/youtube-dl.conf $(HOME)/.config/youtube-dl/youtube-dl.conf: youtube-dl/youtube-dl.conf
mkdir -p $(HOME)/.config/youtube-dl mkdir -p $(HOME)/.config/youtube-dl
cp youtube-dl/youtube-dl.conf $(HOME)/.config/youtube-dl/youtube-dl.conf cp youtube-dl/youtube-dl.conf $@

71
trinitystuff/sway/config Normal file
View File

@ -0,0 +1,71 @@
# man 5 sway
# Alt
set $mod Mod1
floating_modifier $mod normal
# sway-bar(5)
bar {
colors {
statusline #ffdbdb
background #000000
inactive_workspace #000000 #000000 #5c5c5c
}
font Unscii:size=12
position top
status_command while date +'%Y-%m-%dT%H:%M:%S'; do sleep 1; done
}
bindsym $mod+1 workspace number 1
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+q kill
bindsym $mod+Shift+e exec swaymsg exit
bindsym $mod+r mode "resize"
mode "resize" {
bindsym Escape mode "default"
bindsym h resize shrink width 10px
bindsym j resize grow height 10px
bindsym k resize shrink height 10px
bindsym l resize grow width 10px
bindsym Return mode "default"
}
bindsym $mod+Shift+r reload
bindsym $mod+d exec followtrail | wofi --show dmenu | xargs swaymsg exec --
bindsym $mod+f fullscreen
bindsym $mod+h focus left
bindsym $mod+Shift+h move left
bindsym $mod+j focus down
bindsym $mod+Shift+j move down
bindsym $mod+k focus up
bindsym $mod+Shift+k move up
bindsym $mod+l focus right
bindsym $mod+Shift+l move right
bindsym $mod+Return exec foot
bindsym $mod+b splith
bindsym $mod+Shift+b exec $BROWSER
bindsym $mod+v splitv
bindsym $mod+space focus mode_toggle
bindsym $mod+Shift+space floating toggle
client.focused ffdbdb ffdbdb 000000
client.unfocused 000000 000000 ffffff
default_border pixel
default_floating_border normal
input "type:keyboard" {
xkb_layout us
xkb_options ctrl:nocaps
}
include /etc/sway/config.d/*