Compare commits

..

No commits in common. "4feed1672f09b613dbb83cdc4c7c38bfbcd97600" and "fe54184af6a649ccfdffca5e6b26dbcf03fbc8d3" have entirely different histories.

5 changed files with 6 additions and 46 deletions

View File

@ -5,10 +5,7 @@
[[ -f ~/.bashrc ]] && . ~/.bashrc
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
if [[ ! -z "$IS_LAPTOP" ]]; then
exec startx
else
exec start-sway.sh
fi
XDG_CURRENT_DESKTOP=sway exec dbus-run-session sway
exec startx
fi

View File

@ -35,9 +35,6 @@ if grep "arch-laptop" /etc/hostname &> /dev/null ; then
export IS_LAPTOP=1
fi
# Path to store working directory
export WDIR_PATH="/tmp/$(id -u).wdir"
# include bash aliases
if [ -f ~/.bash_aliases ]
then
@ -56,9 +53,3 @@ then
source ~/.nnn_bookmarks
fi
if [ -f $WDIR_PATH ]
then
wdir="$(cat $WDIR_PATH)"
echo "Working directory from $WDIR_PATH"
cd "$wdir"
fi

View File

@ -50,7 +50,7 @@ schemes:
# Normal colors
normal:
black: '#002b36' # base03
black: '#073642' # base02
red: '#dc322f' # red
green: '#859900' # green
yellow: '#b58900' # yellow
@ -61,7 +61,7 @@ schemes:
# Bright colors
bright:
black: '#073642' # base02
black: '#002b36' # base03
red: '#cb4b16' # orange
green: '#586e75' # base01
yellow: '#657b83' # base00

View File

@ -3,9 +3,8 @@
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
exec --no-startup-id dbus-update-activation-environment --all
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
exec /usr/libexec/polkit-gnome-authentication-agent-1
exec gentoo-pipewire-launcher
### Variables
#

View File

@ -89,7 +89,7 @@ makemd()
pandoc -t pdf $1 -o $(basename $1 .md).pdf
}
# view zathura in tabbed
# view zathrua in tabbed
tzathura()
{
# rm tabbbed.xid if not running
@ -99,30 +99,3 @@ tzathura()
fi
zathura "$@" -e $(</tmp/tabbed.xid) & disown
}
wdir()
{
wdir="$PWD/$1"
[ -d "$wdir" ] && echo "$wdir" > "$WDIR_PATH" && echo "set $wdir"
}
pwdir()
{
if [ -f "$WDIR_PATH" ]
then
cat "$WDIR_PATH"
else
echo "Working directory not set."
fi
}
cwdir()
{
if [ -f "$WDIR_PATH" ]
then
rm -f "$WDIR_PATH"
echo "Cleared working directory."
else
echo "Working directory not set."
fi
}