Add terminal script

This commit is contained in:
Marco Thomas
2021-08-29 12:48:49 +02:00
parent 056fa8178d
commit 9bb07b87c7
6 changed files with 39 additions and 35 deletions

View File

@@ -22,11 +22,17 @@ alias cp='cp -i' # ask before removal
alias mv='mv -i' # ask before removal alias mv='mv -i' # ask before removal
# ============================== SSH-Agent # ============================== SSH-Agent
if ! [ -S /tmp/mthomas-agent.sock ]; then agent() {
if ! [ -S /tmp/mthomas-agent.sock ]; then
echo "Starting ssh-agent" echo "Starting ssh-agent"
ssh-agent -a /tmp/mthomas-agent.sock ssh-agent -a /tmp/mthomas-agent.sock
ssh-add ssh-add
fi else
echo "Agent already running"
fi
}
alias ssha=agent
# ============================== vi-Mode # ============================== vi-Mode
set -o vi set -o vi

View File

@@ -11,9 +11,8 @@ floating_modifier $mod
workspace_layout stacking workspace_layout stacking
### keybinds for starting ### keybinds for starting
bindsym $mod+Return exec --no-startup-id alacritty bindsym $mod+Return exec --no-startup-id "terminal.sh"
bindsym $mod+Ctrl+Return exec --no-startup-id xterm bindsym $mod+d exec --no-startup-id "dmenu_run"
bindsym $mod+d exec --no-startup-id dmenu_run
bindsym $mod+Shift+s exec --no-startup-id "flameshot gui" bindsym $mod+Shift+s exec --no-startup-id "flameshot gui"
### keybinds for moving windows ### keybinds for moving windows

View File

@@ -93,17 +93,11 @@ export HISTFILE="$HOME/.zsh_history"
export SAVEHIST=5000 export SAVEHIST=5000
# ============================== ssh-agent # ============================== ssh-agent
function start_agent() { if ! [ -S /tmp/mthomas-agent.sock ]; then
if ! [ -S /tmp/mthomas-agent.sock ]; then
echo "Starting ssh-agent" echo "Starting ssh-agent"
ssh-agent -a /tmp/mthomas-agent.sock ssh-agent -a /tmp/mthomas-agent.sock
ssh-add ssh-add
else fi
echo "Agent already running..."
fi
}
alias ssha=start_agent
# ============================== vi-Mode # ============================== vi-Mode
bindkey -v bindkey -v

View File

@@ -389,7 +389,20 @@
treemacs-recenter-after-tag-follow t treemacs-recenter-after-tag-follow t
treemacs-tag-follow-delay 1) treemacs-tag-follow-delay 1)
(treemacs-follow-mode t) (treemacs-follow-mode t)
(treemacs-load-theme "doom-atom") (treemacs-load-theme "Default")
(dolist (face '(treemacs-root-face
treemacs-git-unmodified-face
treemacs-git-modified-face
treemacs-git-renamed-face
treemacs-git-ignored-face
treemacs-git-untracked-face
treemacs-git-added-face
treemacs-git-conflict-face
treemacs-directory-face
treemacs-directory-collapsed-face
treemacs-file-face
treemacs-tags-face))
(set-face-attribute face nil :family "Product Sans" :height 120))
:bind :bind
(:map global-map (:map global-map
("C-x t t" . treemacs))) ("C-x t t" . treemacs)))

View File

@@ -1,15 +0,0 @@
#!/bin/bash
OUT=$2
IN=$1
# /printer = bigger
# /ebook = smaller
gs \
-sOutputFile=${OUT} \
-sDEVICE=pdfwrite \
-dNOPAUSE \
-dBATCH \
-dPDFSETTINGS=/printer \
${IN}

7
files/scripts/terminal.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
if [ $USER == "marc" ]; then
alacritty
else
xterm
fi