From f790409869c002f28e5f7fb1cba87717f01a182a Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Fri, 27 Aug 2021 22:52:19 +0200 Subject: [PATCH] Fix some QOL --- files/.config/i3/config | 7 +++---- files/.zshrc | 16 +++++++++++----- files/init.el | 1 + 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/files/.config/i3/config b/files/.config/i3/config index 976d0f8..576fe82 100644 --- a/files/.config/i3/config +++ b/files/.config/i3/config @@ -3,7 +3,7 @@ font pango:Product Sans 11 # correct locking exec --no-startup-id xss-lock --transfer-sleep-lock -- lock.sh -bindsym $mod+Shift+BackSpace exec "loginctl lock-session" +bindsym $mod+Ctrl+BackSpace exec "loginctl lock-session" # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod @@ -14,11 +14,10 @@ workspace_layout stacking bindsym $mod+Return exec --no-startup-id alacritty bindsym $mod+Ctrl+Return exec --no-startup-id xterm bindsym $mod+d exec --no-startup-id dmenu_run -bindsym $mod+e exec --no-startup-id emacs bindsym $mod+Shift+s exec --no-startup-id "flameshot gui" ### keybinds for moving windows -bindsym $mod+Shift+q kill +bindsym $mod+Shift+BackSpace kill # change focus bindsym $mod+h focus left @@ -139,7 +138,7 @@ exec --no-startup-id $HOME/.screenlayout/layout.sh exec --no-startup-id $HOME/scripts/wallpaper.sh # set keyboard layout -exec --no-startup-id "setxkbmap -layout za" +exec --no-startup-id "setxkbmap -layout eu" # set X things exec --no-startup-id "xrdb -merge $HOME/.Xresources" diff --git a/files/.zshrc b/files/.zshrc index 4d017d8..f0ca530 100644 --- a/files/.zshrc +++ b/files/.zshrc @@ -93,11 +93,17 @@ export HISTFILE="$HOME/.zsh_history" export SAVEHIST=5000 # ============================== ssh-agent -if ! [ -S /tmp/mthomas-agent.sock ]; then - echo "Starting ssh-agent" - ssh-agent -a /tmp/mthomas-agent.sock - ssh-add -fi +function start_agent() { + if ! [ -S /tmp/mthomas-agent.sock ]; then + echo "Starting ssh-agent" + ssh-agent -a /tmp/mthomas-agent.sock + ssh-add + else + echo "Agent already running..." + fi +} + +alias ssha=start_agent # ============================== vi-Mode bindkey -v diff --git a/files/init.el b/files/init.el index 6bccae6..45ebbbb 100644 --- a/files/init.el +++ b/files/init.el @@ -309,6 +309,7 @@ (setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5) org-image-actual-width nil org-agenda-files (quote ("~/org")) + calendar-week-start-day 1 org-directory "~/org" org-latex-listings 'minted org-latex-packages-alist '(("" "minted"))