Compare commits

..

4 Commits

Author SHA1 Message Date
16fa2a1ef8
sway/config: Remove display enable/disable on lid
This is brilliant, except it causes the system to go to sleep also
after a period of inactivity. In many cases the machine would wake
up later with the internal display disabled, ugh. Now I just mana-
ge the displays using wdisplays.
2021-01-20 09:34:07 +02:00
b545f329af
sway/config: Key binding to fix tiling containers
I *never* activate tiling containers on purpose, and I don't know
how to get out of them other than closing all my windows and ope-
ning them again. Some kind redditers helped me figure out how to
undo this.
2021-01-20 09:30:51 +02:00
725e642647
sway/config: Use foot as default terminal 2021-01-20 09:28:58 +02:00
62b1337cc4
.zshrc: Remove macOS stuff 2021-01-20 09:28:07 +02:00
2 changed files with 7 additions and 28 deletions

24
.zshrc
View File

@ -20,29 +20,7 @@ autoload -Uz compinit
compinit
# OS-specific things
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
if [[ "$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 alacritty
set $term foot
# 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,6 +29,7 @@ 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
@ -86,10 +87,6 @@ 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
@ -235,6 +232,10 @@ 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