diff --git a/config/i3/i3status.conf b/config/i3/i3status.conf index 68b1353..c073950 100644 --- a/config/i3/i3status.conf +++ b/config/i3/i3status.conf @@ -1,5 +1,5 @@ order += nvidia_smi -# order += bluetooth +order += bluetooth order += keyboard_layout order += arch_updates order += "whatismyip" @@ -25,7 +25,8 @@ spotify { } whatismyip { - format = " {isp}\|{city}\|{countryCode} ({ip}) " + #format = " {isp}\|{city}\|{countryCode} ({ip}) " + format = "{countryCode} ({ip}) " hide_when_offline = True url_geo = "http://ip-api.com/json" } diff --git a/gitconfig b/gitconfig index 97c75de..7873cd3 100644 --- a/gitconfig +++ b/gitconfig @@ -19,6 +19,7 @@ d = difftool adog = log --all --decorate --oneline --graph dog = log --decorate --oneline --graph + count-lines = "! git log --author=\"$1\" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf \"added lines: %s, removed lines: %s, total lines: %s\\n\", add, subs, loc }' #" [push] default = current [core] diff --git a/monitors.py b/monitors.py new file mode 100644 index 0000000..138e9e8 --- /dev/null +++ b/monitors.py @@ -0,0 +1,20 @@ +import sh +import json + + +def i3_command(command, *args, **kwargs): + try: + return json.loads(sh.i3_msg(command, *args, **kwargs).stdout) + except: + return [] + + +def get_workspaces(): + return i3_command("-t", "get_workspaces") + +def get_outputs(): + return i3_command("-t", "get_outputs") + + +print(get_workspaces()) +print(get_outputs()) diff --git a/p53_screen.sh b/p53_screen.sh new file mode 100755 index 0000000..f2707e0 --- /dev/null +++ b/p53_screen.sh @@ -0,0 +1,7 @@ +xrandr --output eDP-1 --auto +xrandr --output DP-1-0.2 --off +xrandr --output DP-1-0.3 --off + +sleep 2 + +xrandr --output eDP-1 --scale 0.5x0.5 diff --git a/tmux.conf b/tmux.conf index bd9d7e5..4ffc3a5 100644 --- a/tmux.conf +++ b/tmux.conf @@ -41,7 +41,11 @@ set -g history-file ~/.tmux_history # List of plugins #set -g @plugin 'tmux-plugins/tpm' -#set -g @plugin 'tmux-plugins/tmux-resurrect' +set -g @plugin 'tmux-plugins/tmux-resurrect' +set -g @resurrect-capture-pane-contents 'on' +set -g @resurrect-strategy-vim 'session' +set -g @resurrect-strategy-nvim 'session' + set -g @plugin 'tmux-plugins/tmux-yank' run -b '~/.tmux/plugins/tpm/tpm'