aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-26 09:36:23 +0200
committerMattias Andrée <maandree@kth.se>2021-06-26 09:36:23 +0200
commit58b1fdb7dd822d24fe23b322e14a08a4056fe19e (patch)
treea7fea83984c4aa86beab6cb6dec9d3fcfd528a64
parentAdd dead key fix for emacs (diff)
downloaddotfiles-58b1fdb7dd822d24fe23b322e14a08a4056fe19e.tar.gz
dotfiles-58b1fdb7dd822d24fe23b322e14a08a4056fe19e.tar.bz2
dotfiles-58b1fdb7dd822d24fe23b322e14a08a4056fe19e.tar.xz
xmonad: remove old session
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--xmonad/xinit5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmonad/xinit b/xmonad/xinit
index 13f8392..bbb15f1 100644
--- a/xmonad/xinit
+++ b/xmonad/xinit
@@ -21,4 +21,9 @@ if test "${SESSION}" = xmonad; then
# Start application panel
mate-panel &
+ # Remove old session
+ if test -f ~/.xmonad/xmonad.state; then
+ rm -f -- ~/.xmonad/xmonad.state
+ fi
+
fi