Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .config/fish/functions/aws-reset-role.fish
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ function aws-reset-role
set -e AWS_SESSION_TOKEN
set -e AWS_SECURITY_TOKEN
set -e AWS_PROFILE
echo "Role cleared"
end
3 changes: 2 additions & 1 deletion .config/fish/functions/aws-role.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Defined in - @ line 2
function aws-role
aws-create-creds
eval (awsu -p$argv)
eval (awsu -p$argv)
echo "Remember: don't drink and prod"
end
3 changes: 2 additions & 1 deletion .config/fish/functions/aws-token.fish
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
function aws-token
aws-create-creds
awsu token -pjobteaser | xclip -selection clipboard $argv
awsu token -pjobteaser | xclip -selection clipboard $argv
echo "Have fun with your token"
end
2 changes: 1 addition & 1 deletion .config/fish/functions/unlock.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Defined in - @ line 2
function unlock
set -e BW_SESSION
set -gx BW_SESSION (bw unlock --raw)
set -gx BW_SESSION (bw unlock --raw)
end
15 changes: 9 additions & 6 deletions .config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set $mod Mod4

# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
font pango:DejaVu Sans Mono 10
font pango:Hack 10

# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
Expand All @@ -30,7 +30,7 @@ font pango:DejaVu Sans Mono 10
floating_modifier $mod

# start a terminal
bindsym $mod+Return exec gnome-terminal
bindsym $mod+Return exec sakura

# kill focused window
bindsym $mod+Shift+q kill
Expand Down Expand Up @@ -180,13 +180,19 @@ bindsym $mod+g exec "~/bin/gtd"
# If you need to pick an application, try with:
# xprop | grep CLASS

# Move second monitor to top when plugged in
exec --no-startup-id "~/.screenlayout/default.sh"

# Assign workspaces
workspace 1 output HDMI-1
workspace 9 output eDP-1

# Make xmessage always floating
for_window [class="Xmessage"] floating enable

assign [class="Slack"] 9

exec wicd-client --tray
exec nm-applet --tray
exec --no-startup-id i3-msg 'workspace 1; exec firefox; workspace 1'
exec slack
exec xfce4-power-manager
Expand All @@ -199,6 +205,3 @@ bindsym --release Print exec "scrot ~/tmp/capture/$(date --iso-8601='seconds').p
bindsym --release Mod1+Sys_Req exec "import -window `xwininfo | awk '/.*Window id:.*/ {print $4}'` ~/tmp/capture/$(date --iso-8601='seconds').png"
# Selection screenshot
bindsym --release Shift+Print exec "scrot ~/tmp/capture/$(date --iso-8601='seconds').png -s -e 'xclip -selection c -t image/png < $f'"

# Move second monitor to top when plugged in
bindsym XF86Display exec --no-startup-id ~/screenlayout/default.sh
3 changes: 3 additions & 0 deletions .gitignore_global
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
$HOME/bin/*
$HOME/.aws/*
state.dump.json
ansible.vault
.idea/
venv/
.rakeTasks
**.iml
*.swp
1 change: 1 addition & 0 deletions .local/share/fonts/.uuid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b41e20f0-ab5a-4222-be17-790f777b579c
Binary file added .local/share/fonts/Hack-Bold.ttf
Binary file not shown.
Binary file added .local/share/fonts/Hack-BoldItalic.ttf
Binary file not shown.
Binary file added .local/share/fonts/Hack-Italic.ttf
Binary file not shown.
Binary file added .local/share/fonts/Hack-Regular.ttf
Binary file not shown.
2 changes: 2 additions & 0 deletions .screenlayout/default.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
xrandr --output HDMI-2 --off --output HDMI-1 --primary --mode 2560x1080 --pos 0x0 --rotate normal --output DP-1 --off --output eDP-1 --mode 1920x1080 --pos 336x1080 --rotate normal --output DP-2 --off
5 changes: 5 additions & 0 deletions bin/aws-create-creds
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ CREDS_TMP=$XDG_RUNTIME_DIR/credentials_aws

BW_ITEM_ID=1ebac7ff-7a4c-4ad8-8731-aafa00b60ba1

if [[ -f "$CREDS_DEST" ]]; then
echo "Credentials file exists. Goodbye"
exit 0
fi

if [[ ! $(bw unlock --check) ]]; then
export BW_SESSION=$(bw unlock --raw)
fi
Expand Down