update env and system
This commit is contained in:
@@ -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
|
EDITOR=vim
|
||||||
VISUAL=vim
|
VISUAL=vim
|
||||||
_JAVA_AWT_WM_NONREPARENTING=1
|
_JAVA_AWT_WM_NONREPARENTING=1
|
||||||
SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.socket"
|
SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.socket"
|
||||||
DOCKER_HOST=unix:///run/user/$UID/podman/podman.sock
|
|
||||||
GTK_IM_MODULE=fcitx5
|
GTK_IM_MODULE=fcitx5
|
||||||
QT_IM_MODULE=fcitx5
|
QT_IM_MODULE=fcitx5
|
||||||
SDL_IM_MODULE=fcitx5
|
SDL_IM_MODULE=fcitx5
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Read `man 5 sway` for a complete reference.
|
# Read `man 5 sway` for a complete reference.
|
||||||
|
|
||||||
# Font in sway
|
# Font in sway
|
||||||
font pango: SFMono Nerd Font 9
|
font pango: SFMono Nerd Font 8
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
@@ -31,6 +31,8 @@ set $baseB2 #073642
|
|||||||
set $baseB3 #002b36
|
set $baseB3 #002b36
|
||||||
set $custom #e1cab3
|
set $custom #e1cab3
|
||||||
|
|
||||||
|
set $bar_bg #ffffff99
|
||||||
|
|
||||||
# clientclass border backgr. text indicator
|
# clientclass border backgr. text indicator
|
||||||
client.focused $green $green $baseB3 $blue
|
client.focused $green $green $baseB3 $blue
|
||||||
client.focused_inactive $baseA2 $baseA2 $baseB2 $violet
|
client.focused_inactive $baseA2 $baseA2 $baseB2 $violet
|
||||||
@@ -176,10 +178,13 @@ input type:keyboard {
|
|||||||
default_border none
|
default_border none
|
||||||
default_floating_border normal
|
default_floating_border normal
|
||||||
for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill
|
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 [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 [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="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
|
# Status Bar
|
||||||
# man 5 sway-bar
|
# man 5 sway-bar
|
||||||
|
|||||||
@@ -42,7 +42,22 @@ alias rm='rm -i' # Ask before removal
|
|||||||
alias cp='cp -i' # Ask before removal
|
alias cp='cp -i' # Ask before removal
|
||||||
alias mv='mv -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
|
# 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() {
|
ocr() {
|
||||||
if [ -z $1 ]; then
|
if [ -z $1 ]; then
|
||||||
echo "Please input a file."
|
echo "Please input a file."
|
||||||
@@ -182,7 +197,7 @@ rga-fzf() {
|
|||||||
zle -N rga-fzf
|
zle -N rga-fzf
|
||||||
bindkey '^G' "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) ]]
|
if [[ -x $(which fzf 2> /dev/null) ]]
|
||||||
then
|
then
|
||||||
# The code at the top and the bottom of this file is the same as in completion.zsh.
|
# The code at the top and the bottom of this file is the same as in completion.zsh.
|
||||||
|
|||||||
Reference in New Issue
Block a user