Add terminal script
This commit is contained in:
@@ -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
|
||||||
|
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
|
||||||
|
echo "Agent already running"
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
alias ssha=agent
|
||||||
|
|
||||||
# ============================== vi-Mode
|
# ============================== vi-Mode
|
||||||
set -o vi
|
set -o vi
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
|
||||||
echo "Agent already running..."
|
|
||||||
fi
|
fi
|
||||||
}
|
|
||||||
|
|
||||||
alias ssha=start_agent
|
|
||||||
|
|
||||||
# ============================== vi-Mode
|
# ============================== vi-Mode
|
||||||
bindkey -v
|
bindkey -v
|
||||||
|
|||||||
@@ -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)))
|
||||||
|
|||||||
@@ -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
7
files/scripts/terminal.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ $USER == "marc" ]; then
|
||||||
|
alacritty
|
||||||
|
else
|
||||||
|
xterm
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user