From ad0e0fc1e0b78b3587ea2c2f3a484fe3456d9f33 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Sat, 11 Jun 2022 10:32:03 +0200 Subject: [PATCH] update env and system --- .../.config/environment.d/envvars.conf | 3 +-- files/sway/.config/sway/config | 9 +++++++-- files/zsh/.zshrc | 17 ++++++++++++++++- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/files/environment/.config/environment.d/envvars.conf b/files/environment/.config/environment.d/envvars.conf index 976f806..58e12a8 100644 --- a/files/environment/.config/environment.d/envvars.conf +++ b/files/environment/.config/environment.d/envvars.conf @@ -1,9 +1,8 @@ -PATH=$PATH:$HOME/.dots/scripts:$HOME/.cargo/bin:$HOME/.ghcup/bin:$HOME/.local/bin:$HOME/.cabal/bin +PATH=$HOME/.dots/scripts:$HOME/.cargo/bin:$HOME/.ghcup/bin:$HOME/.local/bin:$HOME/.cabal/bin:$PATH EDITOR=vim VISUAL=vim _JAVA_AWT_WM_NONREPARENTING=1 SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.socket" -DOCKER_HOST=unix:///run/user/$UID/podman/podman.sock GTK_IM_MODULE=fcitx5 QT_IM_MODULE=fcitx5 SDL_IM_MODULE=fcitx5 diff --git a/files/sway/.config/sway/config b/files/sway/.config/sway/config index 3c823db..5ded336 100644 --- a/files/sway/.config/sway/config +++ b/files/sway/.config/sway/config @@ -2,7 +2,7 @@ # Read `man 5 sway` for a complete reference. # Font in sway -font pango: SFMono Nerd Font 9 +font pango: SFMono Nerd Font 8 # Variables set $mod Mod4 @@ -31,6 +31,8 @@ set $baseB2 #073642 set $baseB3 #002b36 set $custom #e1cab3 +set $bar_bg #ffffff99 + # clientclass border backgr. text indicator client.focused $green $green $baseB3 $blue client.focused_inactive $baseA2 $baseA2 $baseB2 $violet @@ -176,10 +178,13 @@ input type:keyboard { default_border none default_floating_border normal for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill + for_window [app_id="firefox"] move container to workspace number $ws2 for_window [class="discord"] move container to workspace number $ws3 + for_window [app_id="org.telegram.desktop"] move container to workspace number $ws3 for_window [class="Spotify"] move container to workspace number $ws4 + for_window [app_id="Joplin"] move container to workspace number $ws5 for_window [app_id="geary"] move container to workspace number $ws8 - for_window [app_id="org.keepassxc.KeepassXC"] move container to workspace number $ws9 + for_window [app_id="org.keepassxc.KeePassXC"] move container to workspace number $ws9 # Status Bar # man 5 sway-bar diff --git a/files/zsh/.zshrc b/files/zsh/.zshrc index 8d126c7..db3bd54 100644 --- a/files/zsh/.zshrc +++ b/files/zsh/.zshrc @@ -42,7 +42,22 @@ alias rm='rm -i' # Ask before removal alias cp='cp -i' # Ask before removal alias mv='mv -i' # Ask before removal +alias -g G='| grep -i' +alias -g L='| less' +alias gg='git grep' + +alias code='/usr/bin/code --enable-features=UseOzonePlatform --ozone-platform=wayland . 2>/dev/null' + # tools +pd() { + pandoc $1.md -o $1.pdf --from markdown --template eisvogel --listings --toc +} + +pdp() { + pandoc $1.md -o $1.pdf --from markdown -t beamer --toc +} + + ocr() { if [ -z $1 ]; then echo "Please input a file." @@ -182,7 +197,7 @@ rga-fzf() { zle -N rga-fzf bindkey '^G' "rga-fzf" -## fzf Bindings in zsh (C-r and C-t) +## fzf Bindings in zsh (C-r and C-f) if [[ -x $(which fzf 2> /dev/null) ]] then # The code at the top and the bottom of this file is the same as in completion.zsh.