Compare commits

..

No commits in common. "16fa2a1ef8f38b15a17a039d61c41cbadff279d6" and "485b7af00b4c90bdd3515c79ceb634bfc9703b98" have entirely different histories.

2 changed files with 28 additions and 7 deletions

24
.zshrc
View File

@ -20,7 +20,29 @@ autoload -Uz compinit
compinit
# OS-specific things
if [[ "$OSTYPE" =~ ^linux.*$ ]]; then
if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then
# explicitly add Homebrew binary paths just in case Terminal doesn't inherit it from macOS, for example Alacritty.
PATH=$PATH:/usr/local/bin:/usr/local/sbin
# Add brew stuff to MANPATH
MANPATH=/usr/local/share/man:/usr/local/opt/postgresql@9.5/share/man:$PATH
# opt out of Homebrew analytics
# see: https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md
export HOMEBREW_NO_ANALYTICS=1
export HOMEBREW_NO_EMOJI=1
export HOMEBREW_NO_AUTO_UPDATE=1
# use some GNU stuff from homebrew: coreutils findutils gnu-sed
# requires at least: coreutils findutils gnu-sed
PATH="/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/findutils/libexec/gnubin:/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
alias grep='ggrep'
# Add BasicTeX to PATH
# See: https://tug.org/mactex/morepackages.html
PATH=$PATH:/usr/local/texlive/2017basic/bin/x86_64-darwin
elif [[ "$OSTYPE" =~ ^linux.*$ ]]; then
PATH=~/.local/bin:$PATH
# System Node.js with local "global" package prefix, for DSpace build environment:

View File

@ -14,7 +14,7 @@ set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term foot
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
@ -29,7 +29,6 @@ font pango:Source Sans Pro Semi-Bold 10
assign [app_id="firefox"] 1
assign [app_id="Alacritty"] 2
assign [app_id="foot"] 2
assign [app_id="geary"] 3
assign [app_id="thunderbird"] 3
for_window [app_id="gnome-calculator"] floating enable
@ -87,6 +86,10 @@ output HDMI-A-1 {
position 1280,0
}
set $laptop eDP-1
bindswitch --reload lid:on output $laptop disable
bindswitch --reload lid:off output $laptop enable
# Wayland overlay bar for sound and brightness level
exec mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob
@ -232,10 +235,6 @@ input type:keyboard {
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Fix accidental tiling containers like T[Alacritty Alacritty gedit]
# See: https://www.reddit.com/r/swaywm/comments/kzr2xl/how_do_i_undo_talacritty_alacritty_alacritty/
bindsym $mod+ctrl+a [tiling workspace="__focused__"] move workspace "reorder"; [workspace="reorder"] move workspace current
# Make the current focus fullscreen
bindsym $mod+f fullscreen