Removed some aliases, and fixed some scripts
This commit is contained in:
@@ -25,14 +25,3 @@ alias gsp='git stash pop'
|
||||
alias gg='git lgb'
|
||||
alias gpull='git pull'
|
||||
alias gpush='git push'
|
||||
|
||||
# Postgres connections
|
||||
alias local_psql='psql -d vilynx-db -U vilynx-web'
|
||||
alias test_psql='psql -h postgres2.test.east.vilynx.com -d vilynx-db -U vilynx-web -p 5432'
|
||||
alias prod_psql='ssh -f vilynxro@apache71.prod.east.vilynx.com -L 5440:localhost:5433 sleep 600; psql -h localhost -p 5440 -d vilynx-db -U vilynx-web'
|
||||
|
||||
# Redshift connection
|
||||
alias test_redshift='psql -h redshift.test.east.vilynx.com -d dagda_insights -p 5439 -U dagda_user'
|
||||
alias prod_redshift='psql -h redshift.east.vilynx.com -d dagda_insights -p 5439 -U dagda_user'
|
||||
|
||||
alias kraken_psql='psql -h kraken.vpn.vilynx.com -d vilynx-db -U vilynx-web -p 5432'
|
||||
|
||||
@@ -255,6 +255,9 @@ bindsym $mod+Shift+Home exec setxkbmap -layout es -variant cat & ibus engine xkb
|
||||
# Wifi
|
||||
bindsym $mod+Shift+w exec ~/.config/polybar/scripts/wifi_connect.py
|
||||
|
||||
# Other cool stuff
|
||||
bindsym $mod+Shift+t exec ~/.config/i3/scripts/tunes.sh
|
||||
|
||||
# Order of screens
|
||||
exec --no-startup-id xrandr --output DP-2 --right-of eDP-1
|
||||
exec --no-startup-id xrandr --output DP-1 --right-of DP-2
|
||||
|
||||
4
.config/i3/scripts/tunes.sh
Executable file
4
.config/i3/scripts/tunes.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#! /bin/bash
|
||||
|
||||
source ~/venv/tunes/bin/activate
|
||||
~/repos/tunes/tunes.py 2>~/log.tunes
|
||||
@@ -77,6 +77,7 @@ font-4 = "Font Awesome 5 Brands:pixelsize=8;1"
|
||||
modules-left = i3 spotify1
|
||||
modules-center = date
|
||||
modules-right = xkeyboard wifi pulseaudio battery
|
||||
;modules-right = xkeyboard pulseaudio battery
|
||||
|
||||
separator = " : "
|
||||
|
||||
|
||||
@@ -49,7 +49,11 @@ def get_command(action):
|
||||
list_aps_command = ['nmcli', '-t', 'device', 'wifi', 'list']
|
||||
list_aps_result = subprocess.run(list_aps_command, stdout=subprocess.PIPE)
|
||||
list_aps_output = list_aps_result.stdout.decode('utf-8')
|
||||
nm_items = [APListItem(*line.split(':')) for line in list_aps_output.split('\n') if line]
|
||||
try:
|
||||
nm_items = [APListItem(*line.split(':')) for line in list_aps_output.split('\n') if line]
|
||||
except Exception:
|
||||
print([line.split(':') for line in list_aps_output.split('\n') if line])
|
||||
raise
|
||||
|
||||
# Get VPN status
|
||||
list_con_command = ['nmcli', '-t', 'connection', 'show']
|
||||
|
||||
Reference in New Issue
Block a user