From 20a37dcb80d45ffacbd3da9ea870f2425cde3d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sun, 16 Feb 2020 02:25:12 -0300 Subject: [PATCH 1/6] Change all workspace names to emojis. --- wm/.config/sway/config | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/wm/.config/sway/config b/wm/.config/sway/config index 593d666..c90ce50 100644 --- a/wm/.config/sway/config +++ b/wm/.config/sway/config @@ -152,21 +152,21 @@ bindsym $mod+Shift+a focus child ## Workspaces # Workspace name -set $ws1 "1" -set $ws2 "2" -set $ws3 "3" -set $ws4 "4" -set $ws5 "5" -set $ws6 "6" -set $ws7 "7" -set $ws8 "8" -set $ws9 "9" -set $ws10 "10" -set $wsb "browser" -set $wsn "nth" -set $wsm "media" -set $wso "oh" -set $wsp "pdf" +set $ws1 "πŸ’œ" +set $ws2 "πŸ‘―" +set $ws3 "πŸ”±" +set $ws4 "πŸ€" +set $ws5 "🌟" +set $ws6 "🌈" +set $ws7 "🐞" +set $ws8 "♾️" +set $ws9 "πŸ‘Œ" +set $ws10 "πŸŒ€" +set $wsb "🌎" +set $wsn "⚑" +set $wsm "🎺" +set $wso "πŸ§›" +set $wsp "πŸ“œ" # Switch to workspace bindsym $mod+1 workspace $ws1 bindsym $mod+2 workspace $ws2 From 7b104e43300727887ce5bfaf40332265e013e510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sun, 16 Feb 2020 02:32:55 -0300 Subject: [PATCH 2/6] Fix error in cp script. Error introduced in commit 1ff0aa55 --- script/.local/bin/cp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/.local/bin/cp b/script/.local/bin/cp index b2a2457..ac70f06 100755 --- a/script/.local/bin/cp +++ b/script/.local/bin/cp @@ -2,5 +2,5 @@ # Uses copy setttings beneficial to Btrfs -/usr/bin/env cp --reflink=auto --sparse=always "$@" +/usr/bin/cp --reflink=auto --sparse=always "$@" From 136249872df3248efc2c74ae3b9b482367cadd69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Wed, 11 Mar 2020 19:33:37 -0300 Subject: [PATCH 3/6] Change the header of alacritty.yml --- alacritty/.config/alacritty/alacritty.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alacritty/.config/alacritty/alacritty.yml b/alacritty/.config/alacritty/alacritty.yml index e23eb47..39da36c 100644 --- a/alacritty/.config/alacritty/alacritty.yml +++ b/alacritty/.config/alacritty/alacritty.yml @@ -1,4 +1,4 @@ -# Configuration for Alacritty, the GPU enhanced terminal emulator. +# ericonr's configuration for Alacritty, the GPU enhanced terminal emulator. # Any items in the `env` entry below will be added as # environment variables. Some entries may override variables From 6055d259ea9e0f07bdb9efb64a29c94149229647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Wed, 11 Mar 2020 19:34:04 -0300 Subject: [PATCH 4/6] Add script to create a folder backed by tmpfs. --- script/.local/bin/mktmpdir | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 script/.local/bin/mktmpdir diff --git a/script/.local/bin/mktmpdir b/script/.local/bin/mktmpdir new file mode 100755 index 0000000..17fa871 --- /dev/null +++ b/script/.local/bin/mktmpdir @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +NEW_DIR="/tmp/$(pwd)/$1" + +echo New dir created in $NEW_DIR + +mkdir -p $NEW_DIR +ln -s $NEW_DIR $1 + From 5a1ea835d3d8863aff5dda6ac9522a3a08831ece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Thu, 12 Mar 2020 13:57:59 -0300 Subject: [PATCH 5/6] Update sway configs. * Change touchpad input configuration to "*", so it acts on all inputs. * Add shortcut for launching MPV with clipboard as the argument (useful for viewing youtube videos with hardware acceleration). * Add rule to push Zathura to the P workspace. * Add background image to swaylock. * Enable cache in wofi. --- wm/.config/sway/config | 6 ++++-- wm/.config/swaylock/config | 1 + wm/.config/wofi/config | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/wm/.config/sway/config b/wm/.config/sway/config index c90ce50..343cc37 100644 --- a/wm/.config/sway/config +++ b/wm/.config/sway/config @@ -46,8 +46,7 @@ input * { } bindsym $mod+Space exec keyboard_layout_switcher # Touchpad -set $touchpad "1739:31251:SYNA2393:00_06CB:7A13_Touchpad" -input $touchpad { +input * { tap enabled natural_scroll disabled } @@ -79,6 +78,8 @@ bindsym $mod+Return exec $term bindsym $mod+t exec $term -e start-tmux # Start a terminal with music tmux bindsym $mod+Mod1+m exec $term -e start-tmux-music +# Start MPV with clipboard as arg +bindsym $mod+Mod1+p exec bash -c "mpv `wl-paste`" # Launch editor bindsym $mod+Shift+w exec $editor # Start Dolphin file browser @@ -256,6 +257,7 @@ assign [app_id="Kicad"] $wsn assign [title="CubeMX"] $wsn # PDF assign [app_id="okular"] $wsp +assign [app_id="zathura"] $wsp ## Application specific settings for_window [app_id="krunner"] floating enable diff --git a/wm/.config/swaylock/config b/wm/.config/swaylock/config index b0166bb..a9a9bab 100644 --- a/wm/.config/swaylock/config +++ b/wm/.config/swaylock/config @@ -2,4 +2,5 @@ daemonize color=000000 +image=~/Pictures/wallpaper.png diff --git a/wm/.config/wofi/config b/wm/.config/wofi/config index f8c9a15..b6d31d1 100644 --- a/wm/.config/wofi/config +++ b/wm/.config/wofi/config @@ -4,3 +4,5 @@ prompt=Hello! normal_window=false allow_images=true +cache=~/.cache/wofi + From b70d12a94a1a96e1dbd74d797074462cf36a19ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Thu, 12 Mar 2020 14:00:43 -0300 Subject: [PATCH 6/6] Change neovim tab width to 3 spaces. I did this for two reasons: * I will try to use tabs for new code I write, due to a blog post I read regarding the added difficulty for people with sight issues when using files indented with spaces. It's an accessibility thing. * 3 space tab width means it won't be confused with spaces, because no one who indents with spaces should use 3 spaces for that. It's also a pretty comfortable size. --- nvim/.config/nvim/init.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 5684e86..cf99703 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -27,9 +27,21 @@ set smartcase " APPEARANCE +" Tab width +set tabstop=3 +set shiftwidth=3 + " Show relative line numbers set number rnu " Pretty color scheme that works well with the one chosen for alacritty colorscheme slate + +" FUNCTIONS + +" Sets up the editor for spaces instead of tabs - WIP +" https://stackoverflow.com/questions/1878974/redefine-tab-as-4-spaces +fu! SpaceTabs() + :set tabstop=8 softtabstop=0 expandtab shiftwidth=2 smarttab +endfunction