Add screen (for p53) management, update i3 status conf, tmux git
This commit is contained in:
parent
a452ac6014
commit
de23c70817
@ -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"
|
||||
}
|
||||
|
||||
@ -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]
|
||||
|
||||
20
monitors.py
Normal file
20
monitors.py
Normal 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
7
p53_screen.sh
Executable 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
|
||||
@ -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'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user