Add screen (for p53) management, update i3 status conf, tmux git

This commit is contained in:
Loïc Gremaud 2022-07-20 14:22:09 +02:00
parent a452ac6014
commit de23c70817
Signed by: Legrems
GPG Key ID: D4620E6DF3E0121D
5 changed files with 36 additions and 3 deletions

View File

@ -1,5 +1,5 @@
order += nvidia_smi order += nvidia_smi
# order += bluetooth order += bluetooth
order += keyboard_layout order += keyboard_layout
order += arch_updates order += arch_updates
order += "whatismyip" order += "whatismyip"
@ -25,7 +25,8 @@ spotify {
} }
whatismyip { whatismyip {
format = " {isp}\|{city}\|{countryCode} ({ip}) " #format = " {isp}\|{city}\|{countryCode} ({ip}) "
format = "{countryCode} ({ip}) "
hide_when_offline = True hide_when_offline = True
url_geo = "http://ip-api.com/json" url_geo = "http://ip-api.com/json"
} }

View File

@ -19,6 +19,7 @@
d = difftool d = difftool
adog = log --all --decorate --oneline --graph adog = log --all --decorate --oneline --graph
dog = log --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] [push]
default = current default = current
[core] [core]

20
monitors.py Normal file
View File

@ -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())

7
p53_screen.sh Executable file
View File

@ -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

View File

@ -41,7 +41,11 @@ set -g history-file ~/.tmux_history
# List of plugins # List of plugins
#set -g @plugin 'tmux-plugins/tpm' #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' set -g @plugin 'tmux-plugins/tmux-yank'
run -b '~/.tmux/plugins/tpm/tpm' run -b '~/.tmux/plugins/tpm/tpm'