Compare commits
No commits in common. "4feed1672f09b613dbb83cdc4c7c38bfbcd97600" and "fe54184af6a649ccfdffca5e6b26dbcf03fbc8d3" have entirely different histories.
4feed1672f
...
fe54184af6
@ -5,10 +5,7 @@
|
|||||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||||
|
|
||||||
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
|
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
|
||||||
if [[ ! -z "$IS_LAPTOP" ]]; then
|
XDG_CURRENT_DESKTOP=sway exec dbus-run-session sway
|
||||||
exec startx
|
exec startx
|
||||||
else
|
|
||||||
exec start-sway.sh
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
9
.bashrc
9
.bashrc
@ -35,9 +35,6 @@ if grep "arch-laptop" /etc/hostname &> /dev/null ; then
|
|||||||
export IS_LAPTOP=1
|
export IS_LAPTOP=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Path to store working directory
|
|
||||||
export WDIR_PATH="/tmp/$(id -u).wdir"
|
|
||||||
|
|
||||||
# include bash aliases
|
# include bash aliases
|
||||||
if [ -f ~/.bash_aliases ]
|
if [ -f ~/.bash_aliases ]
|
||||||
then
|
then
|
||||||
@ -56,9 +53,3 @@ then
|
|||||||
source ~/.nnn_bookmarks
|
source ~/.nnn_bookmarks
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f $WDIR_PATH ]
|
|
||||||
then
|
|
||||||
wdir="$(cat $WDIR_PATH)"
|
|
||||||
echo "Working directory from $WDIR_PATH"
|
|
||||||
cd "$wdir"
|
|
||||||
fi
|
|
||||||
|
@ -50,7 +50,7 @@ schemes:
|
|||||||
|
|
||||||
# Normal colors
|
# Normal colors
|
||||||
normal:
|
normal:
|
||||||
black: '#002b36' # base03
|
black: '#073642' # base02
|
||||||
red: '#dc322f' # red
|
red: '#dc322f' # red
|
||||||
green: '#859900' # green
|
green: '#859900' # green
|
||||||
yellow: '#b58900' # yellow
|
yellow: '#b58900' # yellow
|
||||||
@ -61,7 +61,7 @@ schemes:
|
|||||||
|
|
||||||
# Bright colors
|
# Bright colors
|
||||||
bright:
|
bright:
|
||||||
black: '#073642' # base02
|
black: '#002b36' # base03
|
||||||
red: '#cb4b16' # orange
|
red: '#cb4b16' # orange
|
||||||
green: '#586e75' # base01
|
green: '#586e75' # base01
|
||||||
yellow: '#657b83' # base00
|
yellow: '#657b83' # base00
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
# Copy this to ~/.config/sway/config and edit it to your liking.
|
# Copy this to ~/.config/sway/config and edit it to your liking.
|
||||||
#
|
#
|
||||||
# Read `man 5 sway` for a complete reference.
|
# 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 /usr/libexec/polkit-gnome-authentication-agent-1
|
||||||
exec gentoo-pipewire-launcher
|
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
#
|
#
|
||||||
|
@ -89,7 +89,7 @@ makemd()
|
|||||||
pandoc -t pdf $1 -o $(basename $1 .md).pdf
|
pandoc -t pdf $1 -o $(basename $1 .md).pdf
|
||||||
}
|
}
|
||||||
|
|
||||||
# view zathura in tabbed
|
# view zathrua in tabbed
|
||||||
tzathura()
|
tzathura()
|
||||||
{
|
{
|
||||||
# rm tabbbed.xid if not running
|
# rm tabbbed.xid if not running
|
||||||
@ -99,30 +99,3 @@ tzathura()
|
|||||||
fi
|
fi
|
||||||
zathura "$@" -e $(</tmp/tabbed.xid) & disown
|
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
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user