From 124e621ce8c65fd0661d78abd3e0e4025ecd5ba8 Mon Sep 17 00:00:00 2001 From: JaeYoo-Im Date: Fri, 28 Apr 2023 17:15:04 +0900 Subject: [PATCH] BSPWM : hotkey, fish shell --- .config/bspwm/bspwmrc | 7 ++--- .config/fish/config.fish | 12 +++++++- .config/sxhkd/sxhkdrc | 59 +++++++++++----------------------------- 3 files changed, 29 insertions(+), 49 deletions(-) diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 0bc171b..5a36028 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -1,9 +1,6 @@ -#!/bin/sh +#!/usr/bin/env bash + -# wgtk stuff -#wpg -R wallpaper.png -#wpg -s wallpaper.png -#source "${HOME}/.cache/wal/colors.sh" # Set environment export BSPWM_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/bspwm" diff --git a/.config/fish/config.fish b/.config/fish/config.fish index ce9b789..5f5d5c6 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -4,7 +4,8 @@ end set fish_greeting -oh-my-posh init fish --config ~/.poshthemes/craver.omp.json | source +set VETHER_IP $(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2) +export DISPLAY=$VETHER_IP:10.0 # emacs alias emupgrade="~/.emacs.d/bin/doom upgrade" @@ -34,5 +35,14 @@ alias startsv="ssh odroid startsv" alias stopsv="ssh odroid stopsv" alias gpulls="pushd ~/.config/emacs && git pull && pushd ~/org && git pull && popd && popd" +# Changing "ls" to "exa" +alias ls='exa -al --color=always --group-directories-first' # my preferred listing +alias la='exa -a --color=always --group-directories-first' # all files and dirs +alias ll='exa -l --color=always --group-directories-first' # long format +alias lt='exa -aT --color=always --group-directories-first' # tree listing +alias l.='exa -a | egrep "^\."' + figlet -w 100 "$hostname" export PYTHONSTARTUP=/home/jaeus/scripts/my_imports.py + +starship init fish | source diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 5006710..0b45ad1 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -22,10 +22,11 @@ super + shift + {1-5} # kitty ##control+alt+g ## lutris -#control+alt+f -# thunar -#super+shift+c -# /home/kz87/.bscripts/wc.sh +super+t + thunar +# close & kill +super+shift+c + bspc node -c # ##rofi things ##Launch apps @@ -97,7 +98,9 @@ super + shift + {1-5} # ## Toggle picom super+p - [[ `pgrep -c picom` -eq 0 ]] && picom -b --config $HOME/.xmonad/scripts/picom.conf || killall picom + [[ `pgrep -c picom` -eq 0 ]] && picom || killall picom +super+w + ~/scripts/random_wallpaper.sh ##Keyboard layouts #super+space @@ -161,42 +164,12 @@ super+p # bspc node focused -z top 0 -15 #super+alt+j # bspc node focused -z bottom 0 15 -#super+{d,a} -# play -v 0.4 ~/Documents/Sounds/tile.wav& bspc node @/ -C {forward,backward} -#alt+{d,a} -# play -v 0.4 ~/Documents/Sounds/tile.wav& bspc node first_ancestor -R {90,270} -#super+e -# play -v 0.4 ~/Documents/Sounds/tile.wav& bspc node first_ancestor --balance -# -#control+shift+h -# bspc node focused -z right -15 0 -#control+shift+l -# bspc node focused -z left 15 0 -#control+shift+j -# bspc node focused -z top 0 15 -#control+shift+k -# bspc node focused -z bottom 0 -15 -# +super + {_,shift +} + {h,j,k,l} + bspc node -{f,s} {west,south,north,east} super+space - if [ -z "$(bspc query -N -n focused.fullscreen)" ]; then \ - bspc node focused -t fullscreen; \ - else \ - bspc node focused -t tiled; \ - fi; -#super+KP_Add -# bspc config window_gap $(( 5 + `bspc config window_gap` )) -#super+KP_Subtract -# bspc config window_gap $(( -5 + `bspc config window_gap` )) -# -#control+alt+{k,j,h,l} -# bspc node --presel-dir ~{north,south,west,east} -# -#control+alt+a -# if [[ ! -z "$(bspc query -N -n focused.normal)" ]]; then \ -# bspc node focused -l above; \ -# elif [[ ! -z "$(bspc query -N -n focused.above)" ]]; then \ -# bspc node focused -l below; \ -# else \ -# bspc node focused -l normal; \ -# fi; -# + bspc node focused -t ~fullscreen +super+KP_Add + bspc config window_gap $(( 5 + `bspc config window_gap` )) +super+KP_Subtract + bspc config window_gap $(( -5 + `bspc config window_gap` )) +