From 68ea75eecf022835213689271abe24f7d9896929 Mon Sep 17 00:00:00 2001 From: Rasmus Rosengren Date: Sat, 12 Feb 2022 11:13:03 +0100 Subject: [PATCH] i3, git signing key, and fish commands --- .config/fish/config.fish | 17 +++++++++++++++-- .config/i3/config | 15 ++++++++++++++- .gitconfig | 2 +- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 79b538b..4c0984c 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -9,7 +9,14 @@ alias gst "git status" alias gaa "git add --all" alias ga. "git add ." alias gds "git diff --staged" -alias gdh "git diff HEAD" +function gdh --argument-names 'reach' + if count $argv > /dev/null + git diff HEAD~$reach + else + git diff HEAD + end +end +funcsave gdh alias gl "git log --oneline --graph" alias gcm "git commit -m" @@ -30,10 +37,16 @@ function forbat --argument-names 'lang' case js prettier --parser babel | bat --language babel --pager "less -RF" case '*' - echo I don\'t know $lang + echo I don\'t know $lang end end funcsave forbat +function bluehead + bluetoothctl power on + bluetoothctl connect 94:DB:56:8E:74:D9 +end +funcsave bluehead + zoxide init fish | source starship init fish | source diff --git a/.config/i3/config b/.config/i3/config index 7ea5f9f..e048b1f 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -139,6 +139,12 @@ client.background #ffffff bindsym $mod+Shift+s exec flameshot gui +for_window [class="code"] move container to workspace $ws2 +for_window [class="discord"] move container to workspace $ws9 +for_window [class="slack"] move container to workspace $ws9 +for_window [class="signal"] move container to workspace $ws9 +for_window [class="spotify"] move container to workspace $ws10 + # screen brightness controls bindsym XF86MonBrightnessUp exec light -A 5 # increase screen brightness bindsym XF86MonBrightnessDown exec light -U 5 # decrease screen brightness @@ -182,4 +188,11 @@ exec --no-startup-id betterlockscreen -u $HOME/.wallpapers/blue-whale.png # Lock after 5 minutes exec --no-startup-id xset s 300 600 exec --no-startup-id xss-lock $HOME/.config/i3/scripts/lock.sh -#exec --no-startup-id xss-lock --transfer-sleep-lock $HOME/.config/i3/scripts/lock.sh + +# Start applications +exec --no-startup-id firefox +exec --no-startup-id code +exec --no-startup-id discord +exec --no-startup-id slack +exec --no-startup-id signal +exec --no-startup-id spotify diff --git a/.gitconfig b/.gitconfig index 1df3aef..7643509 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,7 +1,7 @@ [user] name = Rasmus Rosengren email = rasmus.rosengren@protonmail.com - signingkey = A5EE9B6829E20E3E + signingkey = C3BED1500C477BED [commit] gpgsign = true