initial checkin with most things working, but still mostly my i3 config
This commit is contained in:
commit
0a34210827
23 changed files with 701 additions and 0 deletions
27
README.md
Normal file
27
README.md
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# Introduction
|
||||||
|
|
||||||
|
This is my ~/.config/i3 configuration directory. I have been using I3 for a
|
||||||
|
little over a week. At this point, I'm not totally sure that I am going to
|
||||||
|
stick with it, but I have enjoyed the customization process so far and have
|
||||||
|
created a very workable environemnt
|
||||||
|
|
||||||
|
# Layout
|
||||||
|
|
||||||
|
I like the common conf.d directory approach to configuration. So I have laid
|
||||||
|
out my configuration in a way that global configs are put in the config file,
|
||||||
|
and everything else is included via conf.d/*.conf.
|
||||||
|
|
||||||
|
autorun.conf contains all the exec statements to start automaticlaly when the
|
||||||
|
session begins
|
||||||
|
|
||||||
|
workspaces.conf contains the variables for the workspace names/icons
|
||||||
|
|
||||||
|
# What I'm using
|
||||||
|
|
||||||
|
feh - for my background updater
|
||||||
|
rofi - for dmenu, and a couple other utilities that I wrote.
|
||||||
|
py3status - for my status bar
|
||||||
|
|
||||||
|
Edited i3-save-tree output for desktop layouts. (I tried i3-resurrect because it
|
||||||
|
solved some of the problems I had with i3-save-tree, but I never got windows to
|
||||||
|
recover correctly.
|
58
autostart.conf
Normal file
58
autostart.conf
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
# Things that will get started automatically at startup
|
||||||
|
exec /home/kellya/bin/sway_screenshare.sh
|
||||||
|
|
||||||
|
# greenclip for clipboard management
|
||||||
|
exec greenclip daemon
|
||||||
|
exec_always cat /proc/acpi/button/lid/LID/state | awk '{print $2}' | grep -q 'closed' && swaymsg output eDP-1 disable
|
||||||
|
|
||||||
|
#password keyring unlock
|
||||||
|
#exec --no-startup-id /home/kellya/projects/public/gnome-keyring-yubikey-unlock/unlock_keyrings.sh /home/kellya/gnome-secret
|
||||||
|
|
||||||
|
# start nm-applet for network tray icon
|
||||||
|
exec nm-applet
|
||||||
|
|
||||||
|
# Set screen lock
|
||||||
|
#exec xset s 300 5
|
||||||
|
#exec xss-lock -n /usr/libexec/xsecurelock/dimmer -l -- xsecurelock
|
||||||
|
#exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -c 04090e --nofork
|
||||||
|
|
||||||
|
# Load workspace configs
|
||||||
|
#exec --no-startup-id "i3-msg 'workspace $ws1; append_layout ~/.config/i3/layout/w1.json'"
|
||||||
|
#exec --no-startup-id "i3-msg 'workspace $ws2; append_layout ~/.config/i3/layout/w2.json'"
|
||||||
|
#exec --no-startup-id "i3-msg 'workspace $ws3; append_layout ~/.config/i3/layout/w3.json'"
|
||||||
|
#exec --no-startup-id "i3-msg 'workspace $ws4; append_layout ~/.config/i3/layout/w4.json'"
|
||||||
|
#exec --no-startup-id "i3-msg 'workspace $ws5; append_layout ~/.config/i3/layout/w5.json'"
|
||||||
|
#exec --no-startup-id "i3-msg 'workspace $ws6; append_layout ~/.config/i3/layout/w6.json'"
|
||||||
|
|
||||||
|
# disable the urgency flags on all windows at startup
|
||||||
|
exec ~/bin/disable_startup_urgency.sh
|
||||||
|
|
||||||
|
# use gnome settings to set gnome things to dark mode by default
|
||||||
|
exec /usr/libexec/gsd-xsettings
|
||||||
|
|
||||||
|
# Startup logseq
|
||||||
|
workspace $ws6
|
||||||
|
exec /home/kellya/bin/logseq
|
||||||
|
exec /usr/bin/thunderbird
|
||||||
|
|
||||||
|
workspace $ws5
|
||||||
|
# Start spotify from the stupid flatpak
|
||||||
|
exec --no-startup-id "/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=spotify --file-forwarding com.spotify.Client"
|
||||||
|
|
||||||
|
workspace $ws3
|
||||||
|
exec --no-startup-id "kitty"
|
||||||
|
exec --no-startup-id "/usr/bin/1password"
|
||||||
|
|
||||||
|
# Always need firefox, so let's just start it
|
||||||
|
workspace $ws1
|
||||||
|
exec firefox
|
||||||
|
|
||||||
|
# start the auto run .desktop files
|
||||||
|
exec dex-autostart --autostart --environment i3
|
||||||
|
|
||||||
|
# Start redshift, becuase I like not being blinded at night
|
||||||
|
#exec --no-startup-id redshift
|
||||||
|
|
||||||
|
|
||||||
|
# Switch to the terminal/email workspace by default
|
||||||
|
workspace $ws3
|
4
conf.d/assign.conf
Normal file
4
conf.d/assign.conf
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# Assign apps to specific workspaces. This avoids having a placeholder window/desktop open all the time, but still forces it to the workspace it's supposed to be stuck to
|
||||||
|
assign [class="^jetbrains-pycharm$"] number $ws4
|
||||||
|
assign [class="^Clementine$"] number $ws5
|
||||||
|
assign [class="^strawberry$"] number $ws5
|
22
conf.d/bar.conf
Normal file
22
conf.d/bar.conf
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# i3bar config
|
||||||
|
#bar {
|
||||||
|
# mode dock
|
||||||
|
# status_command ~/.local/bin/py3status
|
||||||
|
# strip_workspace_numbers yes
|
||||||
|
# position bottom
|
||||||
|
# font pango:Font Awesome 5 Free Solid 10
|
||||||
|
# separator_symbol "⸽"
|
||||||
|
# colors {
|
||||||
|
# statusline #686f9a
|
||||||
|
# separator #5ccc96
|
||||||
|
## background #2f343f
|
||||||
|
## background #30365FCF
|
||||||
|
# background #30365F90
|
||||||
|
# }
|
||||||
|
|
||||||
|
#}
|
||||||
|
#
|
||||||
|
#
|
||||||
|
bar {
|
||||||
|
swaybar_command waybar
|
||||||
|
}
|
15
conf.d/colors.conf
Normal file
15
conf.d/colors.conf
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# class border backgr. text indicator child_border
|
||||||
|
client.focused #686f9a #30365FCF #fdf6e3 #859900
|
||||||
|
client.focused_inactive #333333 #5f676aCF #ffffff #484e50 #5f676a
|
||||||
|
client.unfocused #333333 #222222CF #888888 #292d2e #222222
|
||||||
|
client.placeholder #2f343f #2f343fi #d8dee8 #2f343f #2f343f
|
||||||
|
|
||||||
|
|
||||||
|
# Defaults
|
||||||
|
#client.focused #4c7899 #285577 #ffffff #2e9ef4 #285577
|
||||||
|
#client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
|
||||||
|
#client.unfocused #333333 #222222 #888888 #292d2e #222222
|
||||||
|
#client.urgent #2f343a #900000 #ffffff #900000 #900000
|
||||||
|
#client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
|
||||||
|
#
|
||||||
|
#client.background #ffffff
|
102
conf.d/key_bindings.conf
Normal file
102
conf.d/key_bindings.conf
Normal file
|
@ -0,0 +1,102 @@
|
||||||
|
# Keybindings
|
||||||
|
# Note, this is for more of a "global" keybindings. Modes will have their own mode_whatever.conf keybinding
|
||||||
|
|
||||||
|
bindsym $mod+Return exec kitty
|
||||||
|
|
||||||
|
bindsym Control+$alt+l exec /home/kellya/.config/sway/scripts/lock.sh
|
||||||
|
|
||||||
|
bindsym $mod+Shift+d exec i3-dmenu-desktop --dmenu="dmenu -i -fn 'Noto Sans:size=8'"
|
||||||
|
bindsym $mod+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 8'
|
||||||
|
|
||||||
|
bindsym --border button2 kill
|
||||||
|
|
||||||
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
|
||||||
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
||||||
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||||
|
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||||
|
bindsym XF86AudioPause exec --no-startup-id mpc toggle
|
||||||
|
|
||||||
|
#Bind media player buttons
|
||||||
|
bindsym XF86AudioPlay exec "~/bin/mediakeys.sh play-pause"
|
||||||
|
bindsym XF86AudioStop exec "~/bin/mediakeys.sh stop";
|
||||||
|
bindsym XF86AudioPrev exec "~/bin/mediakeys.sh previous";
|
||||||
|
bindsym XF86AudioNext exec "~/bin/mediakeys.sh next";
|
||||||
|
|
||||||
|
# display clipboard contents via rofi
|
||||||
|
bindsym Control+$alt+h exec rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}'
|
||||||
|
|
||||||
|
# kill active window
|
||||||
|
bindsym $mod+q kill
|
||||||
|
# reload i3 config
|
||||||
|
bindsym $mod+Shift+c reload
|
||||||
|
# restart i3
|
||||||
|
bindsym $mod+Shift+r restart
|
||||||
|
# quit i3
|
||||||
|
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
||||||
|
|
||||||
|
bindsym $mod+b bar mode hide
|
||||||
|
bindsym $mod+Shift+b bar mode dock
|
||||||
|
|
||||||
|
# change window focus, vim binding
|
||||||
|
bindsym $mod+h focus left
|
||||||
|
bindsym $mod+j focus down
|
||||||
|
bindsym $mod+k focus up
|
||||||
|
bindsym $mod+l focus right
|
||||||
|
# change window focus, arrows
|
||||||
|
bindsym $mod+Left focus left
|
||||||
|
bindsym $mod+Right focus right
|
||||||
|
|
||||||
|
# move active window, vim binding
|
||||||
|
bindsym $mod+Shift+h move left
|
||||||
|
bindsym $mod+Shift+j move down
|
||||||
|
bindsym $mod+Shift+k move up
|
||||||
|
bindsym $mod+Shift+l move right
|
||||||
|
# move active window, arrows
|
||||||
|
bindsym $mod+Shift+Left move left
|
||||||
|
bindsym $mod+Shift+Down move down
|
||||||
|
bindsym $mod+Shift+Up move up
|
||||||
|
bindsym $mod+Shift+Right move right
|
||||||
|
|
||||||
|
bindsym $mod+v split v
|
||||||
|
bindsym $mod+f fullscreen toggle
|
||||||
|
bindsym $mod+w layout tabbed
|
||||||
|
bindsym $mod+e layout toggle split
|
||||||
|
bindsym $mod+Shift+space floating toggle
|
||||||
|
bindsym $mod+space focus mode_toggle
|
||||||
|
bindsym $mod+a focus parent
|
||||||
|
|
||||||
|
# bind up and down arrows to volume script
|
||||||
|
bindsym $mod+Up exec "~/bin/volume.sh up"
|
||||||
|
bindsym $mod+Down exec "~/bin/volume.sh down"
|
||||||
|
bindsym $mod+backslash exec "~/bin/volume.sh mtoggle"
|
||||||
|
|
||||||
|
# $mod 0-9 to change workspace
|
||||||
|
bindsym $mod+1 workspace number $ws1
|
||||||
|
bindsym $mod+2 workspace number $ws2
|
||||||
|
bindsym $mod+3 workspace number $ws3
|
||||||
|
bindsym $mod+4 workspace number $ws4
|
||||||
|
bindsym $mod+5 workspace number $ws5
|
||||||
|
bindsym $mod+6 workspace number $ws6
|
||||||
|
bindsym $mod+7 workspace number $ws7
|
||||||
|
bindsym $mod+8 workspace number $ws8
|
||||||
|
bindsym $mod+9 workspace number $ws9
|
||||||
|
bindsym $mod+0 workspace number $ws10
|
||||||
|
|
||||||
|
# move active containers to workspace number
|
||||||
|
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||||
|
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||||
|
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||||
|
bindsym $mod+Shift+4 move container to workspace number $ws4
|
||||||
|
bindsym $mod+Shift+5 move container to workspace number $ws5
|
||||||
|
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||||
|
bindsym $mod+Shift+7 move container to workspace number $ws7
|
||||||
|
bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||||
|
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||||
|
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||||
|
|
||||||
|
# scratchpad
|
||||||
|
bindsym $mod+Shift+minus move scratchpad
|
||||||
|
bindsym $mod+minus scratchpad show
|
||||||
|
bindsym $mod+plus floating toggle
|
||||||
|
bindswitch lid:on output eDP-1 disable
|
||||||
|
bindswitch lid:off output eDP-1 enable
|
18
conf.d/mode_audio.conf
Normal file
18
conf.d/mode_audio.conf
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# switch to audio mode
|
||||||
|
bindsym $mod+m mode "audio"
|
||||||
|
# output chooser, outside of mode
|
||||||
|
bindsym $mod+o exec --no-startup-id rofi -show rofi-sound -modi "rofi-sound:~/.local/bin/rofi-sound-output-chooser"
|
||||||
|
mode "audio" {
|
||||||
|
bindsym m exec "~/bin/volume.sh mute"
|
||||||
|
bindsym j exec "~/bin/volume.sh down"
|
||||||
|
bindsym k exec "~/bin/volume.sh up"
|
||||||
|
bindsym t exec "~/bin/volume.sh mtoggle"
|
||||||
|
bindsym p exec "playerctl play-pause"
|
||||||
|
bindsym h exec "playerctl previous"
|
||||||
|
bindsym l exec "playerctl next"
|
||||||
|
bindsym o exec --no-startup-id rofi -show rofi-sound -modi "rofi-sound:~/.local/bin/rofi-sound-output-chooser"
|
||||||
|
|
||||||
|
bindsym backslash exec "~/bin/volume.sh mtoggle"
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
19
conf.d/mode_brightness.conf
Normal file
19
conf.d/mode_brightness.conf
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
bindsym $mod+x mode "brightness"
|
||||||
|
mode "brightness" {
|
||||||
|
bindsym j exec "brightnessctl s +10%"
|
||||||
|
bindsym k exec "brightnessctl s 10%-"
|
||||||
|
bindsym 1 exec "brightnessctl s 10%"
|
||||||
|
bindsym 2 exec "brightnessctl s 20%"
|
||||||
|
bindsym 3 exec "brightnessctl s 30%"
|
||||||
|
bindsym 4 exec "brightnessctl s 40%"
|
||||||
|
bindsym 5 exec "brightnessctl s 50%"
|
||||||
|
bindsym 6 exec "brightnessctl s 60%"
|
||||||
|
bindsym 7 exec "brightnessctl s 70%"
|
||||||
|
bindsym 8 exec "brightnessctl s 80%"
|
||||||
|
bindsym 9 exec "brightnessctl s 90%"
|
||||||
|
bindsym 0 exec "brightnessctl s 1000%"
|
||||||
|
|
||||||
|
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
10
conf.d/mode_mouse.conf
Normal file
10
conf.d/mode_mouse.conf
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# use keyboard as mouse with warpd
|
||||||
|
bindsym $mod+semicolon mode "mouse"
|
||||||
|
mode "mouse" {
|
||||||
|
bindsym x mode default, exec warpd --hint
|
||||||
|
bindsym c mode default, exec warpd --normal
|
||||||
|
bindsym g mode default, exec warpd --grid
|
||||||
|
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
25
conf.d/mode_resize.conf
Normal file
25
conf.d/mode_resize.conf
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# window resizing mode
|
||||||
|
bindsym $mod+r mode "resize"
|
||||||
|
mode "resize" {
|
||||||
|
# These bindings trigger as soon as you enter the resize mode
|
||||||
|
|
||||||
|
# Pressing left will shrink the window’s width.
|
||||||
|
# Pressing right will grow the window’s width.
|
||||||
|
# Pressing up will shrink the window’s height.
|
||||||
|
# Pressing down will grow the window’s height.
|
||||||
|
bindsym j resize shrink width 10 px or 10 ppt
|
||||||
|
bindsym k resize grow height 10 px or 10 ppt
|
||||||
|
bindsym l resize shrink height 10 px or 10 ppt
|
||||||
|
bindsym semicolon resize grow width 10 px or 10 ppt
|
||||||
|
|
||||||
|
# same bindings, but for the arrow keys
|
||||||
|
bindsym Left resize shrink width 10 px or 10 ppt
|
||||||
|
bindsym Down resize grow height 10 px or 10 ppt
|
||||||
|
bindsym Up resize shrink height 10 px or 10 ppt
|
||||||
|
bindsym Right resize grow width 10 px or 10 ppt
|
||||||
|
|
||||||
|
# back to normal: Enter or Escape or $mod+r
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
bindsym $mod+r mode "default"
|
||||||
|
}
|
20
conf.d/mode_restore.conf
Normal file
20
conf.d/mode_restore.conf
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# Restore workspace mode.
|
||||||
|
bindsym $mod+n mode "restore"
|
||||||
|
mode "restore" {
|
||||||
|
bindsym 1 exec "i3-msg 'workspace $ws1; append_layout ~/.config/i3/layout/w1.json'"
|
||||||
|
bindsym 2 exec "i3-msg 'workspace $ws2; append_layout ~/.config/i3/layout/w2.json'"
|
||||||
|
bindsym 3 exec "i3-msg 'workspace $ws3; append_layout ~/.config/i3/layout/w3.json'"
|
||||||
|
bindsym 4 exec "i3-msg 'workspace $ws4; append_layout ~/.config/i3/layout/w4.json'"
|
||||||
|
bindsym 5 exec "i3-msg 'workspace $ws5; append_layout ~/.config/i3/layout/w5.json'"
|
||||||
|
bindsym 6 exec "i3-msg 'workspace $ws6; append_layout ~/.config/i3/layout/w6.json'"
|
||||||
|
bindsym 7 exec "i3-msg 'workspace $ws7; append_layout ~/.config/i3/layout/w7.json'"
|
||||||
|
bindsym 8 exec "i3-msg 'workspace $ws8; append_layout ~/.config/i3/layout/w8.json'"
|
||||||
|
bindsym 9 exec "i3-msg 'workspace $ws9; append_layout ~/.config/i3/layout/w9.json'"
|
||||||
|
bindsym 0 exec "i3-msg 'workspace $ws0; append_layout ~/.config/i3/layout/w10.json'"
|
||||||
|
|
||||||
|
# Back to normal: Enter, Escape, or n
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
bindsym n mode "default"
|
||||||
|
bindsym $mod+n mode "default"
|
||||||
|
}
|
20
conf.d/mode_save.conf
Normal file
20
conf.d/mode_save.conf
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# Save workspace mode.
|
||||||
|
bindsym $mod+s mode "save"
|
||||||
|
mode "save" {
|
||||||
|
bindsym 1 exec "i3-save-tree --workspace=1 > $HOME/.config/i3/layout/w1.json"
|
||||||
|
bindsym 2 exec "i3-save-tree --workspace=2 > $HOME/.config/i3/layout/w2.json"
|
||||||
|
bindsym 3 exec "i3-save-tree --workspace=3 > $HOME/.config/i3/layout/w3.json"
|
||||||
|
bindsym 4 exec "i3-save-tree --workspace=4 > $HOME/.config/i3/layout/w4.json"
|
||||||
|
bindsym 5 exec "i3-save-tree --workspace=5 > $HOME/.config/i3/layout/w5.json"
|
||||||
|
bindsym 6 exec "i3-save-tree --workspace=6 > $HOME/.config/i3/layout/w6.json"
|
||||||
|
bindsym 7 exec "i3-save-tree --workspace=7 > $HOME/.config/i3/layout/w7.json"
|
||||||
|
bindsym 8 exec "i3-save-tree --workspace=8 > $HOME/.config/i3/layout/w8.json"
|
||||||
|
bindsym 9 exec "i3-save-tree --workspace=9 > $HOME/.config/i3/layout/w9.json"
|
||||||
|
bindsym 0 exec "i3-save-tree --workspace=0 > $HOME/.config/i3/layout/w10.json"
|
||||||
|
|
||||||
|
# Back to normal: Enter, Escape, or s
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
bindsym s mode "default"
|
||||||
|
bindsym $mod+s mode "default"
|
||||||
|
}
|
10
conf.d/prt_scr.conf
Normal file
10
conf.d/prt_scr.conf
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# Screenshots
|
||||||
|
# Even though gnome-screenshot names are horrible, mimic them so the path matches
|
||||||
|
bindsym Print exec --no-startup-id maim "/home/$USER/Pictures/Screenshots/Screenshot from $(date +%Y-%m-%d_%H-%M-%S).png"
|
||||||
|
bindsym $mod+Print exec --no-startup-id maim --window $(xdotool getactivewindow) "/home/$USER/Pictures/Screenshots/Screenshot from $(date +%Y-%m-%d_%H-%M-%S).png"
|
||||||
|
bindsym Shift+Print exec --no-startup-id maim --select "/home/$USER/Pictures/Screenshots/Screenshot from $(date +%Y-%m-%d_%H-%M-%S).png"
|
||||||
|
|
||||||
|
## Clipboard Screenshots
|
||||||
|
bindsym Ctrl+Print exec --no-startup-id maim | xclip -selection clipboard -t image/png
|
||||||
|
bindsym Ctrl+$mod+Print exec --no-startup-id maim --window $(xdotool getactivewindow) | xclip -selection clipboard -t image/png
|
||||||
|
bindsym Ctrl+Shift+Print exec --no-startup-id maim --select | xclip -selection clipboard -t image/png
|
16
conf.d/window_rules.conf
Normal file
16
conf.d/window_rules.conf
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# specify window display rules
|
||||||
|
|
||||||
|
for_window [class=".*"] title_window_icon on
|
||||||
|
for_window [class=".*"] title_window_icon padding 1px
|
||||||
|
for_window [urgent="latest" app_id="firefox" workspace=$ws1] focus ; workspace number $ws1
|
||||||
|
for_window [class="Slack"] workspace number $ws2
|
||||||
|
for_window [class="teams-for-linux"] workspace number $ws2
|
||||||
|
for_window [class="kitty"] workspace number $ws3
|
||||||
|
for_window [class="jetbrains-pycharm"] workspace number $ws4
|
||||||
|
for_window [class="spotify"] workspace number $ws5
|
||||||
|
for_window [class="logseq"] workspace number $ws6
|
||||||
|
for_window [class="thunderbird"] workspace number $ws6
|
||||||
|
for_window [class="Joplin"] workspace number $ws6
|
||||||
|
for_window [urgent=latest] focus
|
||||||
|
for_window [app_id="firefox"] border pixel 0
|
||||||
|
for_window [app_id="org.gnome.Calculator"] floating enable
|
36
config
Normal file
36
config
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# This configuration has been modified. Mostly global config is in this config, everything else
|
||||||
|
# is in conf.d
|
||||||
|
|
||||||
|
#Set the $mod key to super/meta/"windows key"
|
||||||
|
set $mod Mod4
|
||||||
|
#Set $alt to the alt key
|
||||||
|
set $alt Mod1
|
||||||
|
|
||||||
|
font pango:Noto Sans 9
|
||||||
|
hide_edge_borders smart
|
||||||
|
|
||||||
|
set $refresh_i3status killall -SIGUSR1 i3status
|
||||||
|
|
||||||
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||||
|
floating_modifier $mod
|
||||||
|
|
||||||
|
xwayland enable
|
||||||
|
|
||||||
|
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||||
|
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||||
|
#font pango:DejaVu Sans Mono 8
|
||||||
|
|
||||||
|
# Include default workspace variables
|
||||||
|
exec swayidle -w \
|
||||||
|
timeout 600 '/home/kellya/.config/sway/scripts/lock.sh' \
|
||||||
|
timeout 900 'swaymsg "output * dpms off"' \
|
||||||
|
resume 'swaymsg "output * dpms on"' \
|
||||||
|
before-sleep '/home/kellya/.config/sway/scripts/lock.sh'
|
||||||
|
include workspaces.conf
|
||||||
|
|
||||||
|
# Include the initial exec commands
|
||||||
|
include autostart.conf
|
||||||
|
|
||||||
|
|
||||||
|
# Pull the rest of config from .conf files in conf.d
|
||||||
|
include conf.d/*.conf
|
32
layout/w1.json
Normal file
32
layout/w1.json
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
"border": "normal",
|
||||||
|
"floating": "auto_off",
|
||||||
|
"layout": "tabbed",
|
||||||
|
"marks": [],
|
||||||
|
"percent": 1,
|
||||||
|
"type": "con",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"border": "normal",
|
||||||
|
"current_border_width": 2,
|
||||||
|
"floating": "auto_off",
|
||||||
|
"geometry": {
|
||||||
|
"height": 1024,
|
||||||
|
"width": 947,
|
||||||
|
"x": 0,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
"marks": [],
|
||||||
|
"name": "Arachnitech | Fedora — Mozilla Firefox",
|
||||||
|
"percent": 1,
|
||||||
|
"swallows": [
|
||||||
|
{
|
||||||
|
"class": "^firefox$",
|
||||||
|
"instance": "^Navigator$"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "con"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
52
layout/w2.json
Normal file
52
layout/w2.json
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
{
|
||||||
|
"border": "normal",
|
||||||
|
"floating": "auto_off",
|
||||||
|
"layout": "tabbed",
|
||||||
|
"marks": [],
|
||||||
|
"percent": 1,
|
||||||
|
"type": "con",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"border": "normal",
|
||||||
|
"current_border_width": 2,
|
||||||
|
"floating": "auto_off",
|
||||||
|
"geometry": {
|
||||||
|
"height": 1040,
|
||||||
|
"width": 1916,
|
||||||
|
"x": 2,
|
||||||
|
"y": 18
|
||||||
|
},
|
||||||
|
"marks": [],
|
||||||
|
"name": "Slack | tux | dorkchat",
|
||||||
|
"percent": 0.25,
|
||||||
|
"swallows": [
|
||||||
|
{
|
||||||
|
"class": "^Slack$"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "con"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"border": "normal",
|
||||||
|
"current_border_width": 2,
|
||||||
|
"floating": "auto_off",
|
||||||
|
"geometry": {
|
||||||
|
"height": 1035,
|
||||||
|
"width": 1920,
|
||||||
|
"x": 0,
|
||||||
|
"y": 22
|
||||||
|
},
|
||||||
|
"marks": [],
|
||||||
|
"name": "Calls | Microsoft Teams",
|
||||||
|
"percent": 0.5,
|
||||||
|
"swallows": [
|
||||||
|
{
|
||||||
|
"class": "^teams\\-for\\-linux$"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "con"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
31
layout/w3.json
Normal file
31
layout/w3.json
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
"border": "normal",
|
||||||
|
"floating": "auto_off",
|
||||||
|
"layout": "tabbed",
|
||||||
|
"marks": [],
|
||||||
|
"percent": 1,
|
||||||
|
"type": "con",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"border": "none",
|
||||||
|
"current_border_width": 2,
|
||||||
|
"floating": "auto_off",
|
||||||
|
"geometry": {
|
||||||
|
"height": 1057,
|
||||||
|
"width": 1920,
|
||||||
|
"x": 0,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
"marks": [],
|
||||||
|
"name": "kellya@salticus:~/projects/arachnitech/i3-config/layout",
|
||||||
|
"percent": 1,
|
||||||
|
"swallows": [
|
||||||
|
{
|
||||||
|
"class": "^kitty$"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "con"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
31
layout/w4.json
Normal file
31
layout/w4.json
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
"border": "normal",
|
||||||
|
"floating": "auto_off",
|
||||||
|
"layout": "tabbed",
|
||||||
|
"marks": [],
|
||||||
|
"percent": 1,
|
||||||
|
"type": "con",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"border": "normal",
|
||||||
|
"current_border_width": 2,
|
||||||
|
"floating": "auto_off",
|
||||||
|
"geometry": {
|
||||||
|
"height": 1030,
|
||||||
|
"width": 1910,
|
||||||
|
"x": 0,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
"marks": [],
|
||||||
|
"name": "fam – eresource.py",
|
||||||
|
"percent": 1,
|
||||||
|
"swallows": [
|
||||||
|
{
|
||||||
|
"class": "^jetbrains\\-pycharm$"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "con"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
31
layout/w5.json
Normal file
31
layout/w5.json
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
"border": "normal",
|
||||||
|
"floating": "auto_off",
|
||||||
|
"layout": "tabbed",
|
||||||
|
"marks": [],
|
||||||
|
"percent": 1,
|
||||||
|
"type": "con",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"border": "normal",
|
||||||
|
"current_border_width": 2,
|
||||||
|
"floating": "auto_off",
|
||||||
|
"geometry": {
|
||||||
|
"height": 1042,
|
||||||
|
"width": 1920,
|
||||||
|
"x": 0,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
"marks": [],
|
||||||
|
"name": "Spotify",
|
||||||
|
"percent": 1,
|
||||||
|
"swallows": [
|
||||||
|
{
|
||||||
|
"class": "^Spotify$"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "con"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
73
layout/w6.json
Normal file
73
layout/w6.json
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
// vim:ts=4:sw=4:et
|
||||||
|
{
|
||||||
|
// tabbed split container with 3 children
|
||||||
|
"border": "normal",
|
||||||
|
"floating": "auto_off",
|
||||||
|
"layout": "tabbed",
|
||||||
|
"marks": [],
|
||||||
|
"percent": 1,
|
||||||
|
"type": "con",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"border": "normal",
|
||||||
|
"current_border_width": 2,
|
||||||
|
"floating": "auto_off",
|
||||||
|
"geometry": {
|
||||||
|
"height": 1040,
|
||||||
|
"width": 1916,
|
||||||
|
"x": 0,
|
||||||
|
"y": 18
|
||||||
|
},
|
||||||
|
"marks": [],
|
||||||
|
"name": "Joplin",
|
||||||
|
"percent": 0.333333333333333,
|
||||||
|
"swallows": [
|
||||||
|
{
|
||||||
|
"class": "^Joplin$"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "con"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"border": "normal",
|
||||||
|
"current_border_width": 2,
|
||||||
|
"floating": "auto_off",
|
||||||
|
"geometry": {
|
||||||
|
"height": 1035,
|
||||||
|
"width": 1920,
|
||||||
|
"x": 0,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
"marks": [],
|
||||||
|
"name": "Inbox - kellya@arachnitech.com - Mozilla Thunderbird",
|
||||||
|
"percent": 0.333333333333333,
|
||||||
|
"swallows": [
|
||||||
|
{
|
||||||
|
"class": "^thunderbird$"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "con"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"border": "normal",
|
||||||
|
"current_border_width": 2,
|
||||||
|
"floating": "auto_off",
|
||||||
|
"geometry": {
|
||||||
|
"height": 1035,
|
||||||
|
"width": 1920,
|
||||||
|
"x": 0,
|
||||||
|
"y": 22
|
||||||
|
},
|
||||||
|
"marks": [],
|
||||||
|
"name": "Logseq",
|
||||||
|
"percent": 0.333333333333333,
|
||||||
|
"swallows": [
|
||||||
|
{
|
||||||
|
"class": "^Logseq$"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "con"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
15
scripts/lock.sh
Executable file
15
scripts/lock.sh
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/bash
|
||||||
|
swaylock \
|
||||||
|
--screenshots \
|
||||||
|
--indicator \
|
||||||
|
--indicator-radius 100 \
|
||||||
|
--indicator-thickness 7 \
|
||||||
|
--effect-blur 7x5 \
|
||||||
|
--effect-vignette 0.5:0.5 \
|
||||||
|
--ring-color 2596be \
|
||||||
|
--key-hl-color 880033 \
|
||||||
|
--line-color 00000000 \
|
||||||
|
--inside-color 00000088 \
|
||||||
|
--separator-color 00000000 \
|
||||||
|
--grace 5 \
|
||||||
|
--fade-in 0.2
|
34
workspaces.conf
Normal file
34
workspaces.conf
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
# Define names for default workspaces
|
||||||
|
# don't use quotes and spaces like the example, run it all together or the restore won't work
|
||||||
|
#set $ws1 1:
|
||||||
|
#set $ws2 2:
|
||||||
|
#set $ws3 3:
|
||||||
|
#set $ws4 4:
|
||||||
|
#set $ws5 5:🎝
|
||||||
|
#set $ws6 6:
|
||||||
|
#set $ws7 7:
|
||||||
|
set $ws1 1
|
||||||
|
set $ws2 2
|
||||||
|
set $ws3 3
|
||||||
|
set $ws4 4
|
||||||
|
set $ws5 5
|
||||||
|
set $ws6 6
|
||||||
|
set $ws7 7
|
||||||
|
set $ws8 8
|
||||||
|
set $ws9 9
|
||||||
|
set $ws10 10
|
||||||
|
set $display_1 DP-4
|
||||||
|
set $display_2 DP-5
|
||||||
|
|
||||||
|
# New workspaces will get fullscreen/tabbed by default
|
||||||
|
workspace_layout tabbed
|
||||||
|
workspace $ws1 output $display_1
|
||||||
|
workspace $ws2 output $display_1
|
||||||
|
workspace $ws3 output $display_2 $display_1
|
||||||
|
workspace $ws4 output $display_2 $display_1
|
||||||
|
workspace $ws5 output $display_2 $display_1
|
||||||
|
workspace $ws6 output $display_2 $display_1
|
||||||
|
workspace $ws7 output $display_2 $display_1
|
||||||
|
workspace $ws8 output $display_2 $display_1
|
||||||
|
workspace $ws9 output $display_2 $display_1
|
||||||
|
workspace $ws10 output $display_2 $display_1
|
Loading…
Reference in a new issue