From 43a55cfea34ab932b667093c9ce93afbf1aa00ff Mon Sep 17 00:00:00 2001 From: lelgenio Date: Mon, 21 Oct 2019 16:06:39 -0300 Subject: [PATCH] sway: fold config --- code/.config/Code - OSS/User/keybindings.json | 25 ++++--- code/.config/Code - OSS/User/settings.json | 62 ++++++++++++----- ranger/.config/ranger/rc.conf | 2 +- sway/.config/sway/config | 69 ++++++++++--------- 4 files changed, 98 insertions(+), 60 deletions(-) diff --git a/code/.config/Code - OSS/User/keybindings.json b/code/.config/Code - OSS/User/keybindings.json index dd58c93..ec66f57 100644 --- a/code/.config/Code - OSS/User/keybindings.json +++ b/code/.config/Code - OSS/User/keybindings.json @@ -4,16 +4,23 @@ "command": "workbench.action.terminal.new" }, { - "key":"ctrl+,", - "command":"workbench.action.openSettingsJson" - },{ - "key":"ctrl+shift+,", - "command":"workbench.action.openGlobalKeybindingsFile" - },{ + "key": "ctrl+,", + "command": "workbench.action.openSettingsJson" + }, + { + "key": "ctrl+shift+,", + "command": "workbench.action.openGlobalKeybindingsFile" + }, + { "key": "ctrl+b", - "command":"workbench.action.toggleSidebarVisibility" - },{ + "command": "workbench.action.toggleSidebarVisibility" + }, + { "key": "ctrl+n", - "command":"notifications.clearAll" + "command": "notifications.clearAll" + }, + { + "key": "ctrl+s", + "command": "saveAll" } ] \ No newline at end of file diff --git a/code/.config/Code - OSS/User/settings.json b/code/.config/Code - OSS/User/settings.json index 562b756..3966f4b 100644 --- a/code/.config/Code - OSS/User/settings.json +++ b/code/.config/Code - OSS/User/settings.json @@ -7,7 +7,6 @@ "editor.minimap.renderCharacters": false, "workbench.editor.closeEmptyGroups": true, "workbench.editor.tabCloseButton": "off", - // Don't ask "git.autofetch": true, "git.confirmSync": false, @@ -16,42 +15,66 @@ "explorer.confirmDelete": false, "files.autoSave": "off", "window.closeWhenEmpty": true, - // Rendering "terminal.integrated.rendererType": "dom", "editor.renderWhitespace": "boundary", "window.zoomLevel": 0, "vim.foldfix": true, - // Fonts "terminal.integrated.fontFamily": "Hack", "editor.fontFamily": "'Hack', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'", "editor.fontSize": 15, "editor.fontLigatures": true, - // Vim "vim.normalModeKeyBindings": [ { - "before":["g", "c"], - "commands": ["editor.action.commentLine"] - },{ - "before":["space"], - "commands": ["workbench.action.showCommands"] - } + "before": [ + "g", + "c" + ], + "commands": [ + "editor.action.commentLine" + ] + }, + { + "before": [ + "space" + ], + "commands": [ + "workbench.action.showCommands" + ] + } ], - // Gay colors "workbench.colorTheme": "Material Theme Darker High Contrast", "materialTheme.accent": "Red", "workbench.iconTheme": "material-icon-theme", "material-icon-theme.folders.color": "#cc5757", "vim.statusBarColorControl": true, - "vim.statusBarColors.insert": ["#cc5757", "#fff"], - "vim.statusBarColors.normal": ["#202020", "#fff"], - "vim.statusBarColors.visual": ["#5757cc", "#fff"], - "vim.statusBarColors.visualblock": ["#5757cc", "#fff"], - "vim.statusBarColors.visualline": ["#5757cc", "#fff"], - "vim.statusBarColors.replace": ["#DD2020", "#fff"], + "vim.statusBarColors.insert": [ + "#cc5757", + "#fff" + ], + "vim.statusBarColors.normal": [ + "#202020", + "#fff" + ], + "vim.statusBarColors.visual": [ + "#5757cc", + "#fff" + ], + "vim.statusBarColors.visualblock": [ + "#5757cc", + "#fff" + ], + "vim.statusBarColors.visualline": [ + "#5757cc", + "#fff" + ], + "vim.statusBarColors.replace": [ + "#DD2020", + "#fff" + ], "workbench.colorCustomizations": { "minimap.selectionHighlight": "#CC5757", "editorCursor.background": "#fff", @@ -84,4 +107,7 @@ "statusBar.debuggingBackground": "#202020", "statusBar.foreground": "#fff" }, -} + "editor.formatOnType": true, + "editor.formatOnSave": true, + "editor.formatOnPaste": true, +} \ No newline at end of file diff --git a/ranger/.config/ranger/rc.conf b/ranger/.config/ranger/rc.conf index 72477b4..bdbc5d2 100644 --- a/ranger/.config/ranger/rc.conf +++ b/ranger/.config/ranger/rc.conf @@ -150,7 +150,7 @@ set draw_progress_bar_in_status_bar true # Separators are vertical lines between columns. # Outline draws a box around all the columns. # Both combines the two. -set draw_borders both +set draw_borders none # Display the directory name in tabs? set dirname_in_tabs true diff --git a/sway/.config/sway/config b/sway/.config/sway/config index e351706..e897a5e 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -1,8 +1,8 @@ # LEL -# -# Variables -# # Logo key. +# Variables {{{ +# + # Logo key. set $mod Mod4 # Home row direction keys, like vim set $left h @@ -14,8 +14,8 @@ set $menu swaymsg exec 'rofi -show drun -display-drun Iniciar:' font pango:Hack 14px -# -# Output configuration +# }}} +# Output configuration {{{ # output * bg ~/.config/sway/minimalistic_interjection.jpg fill @@ -31,8 +31,8 @@ bindsym XF86MonBrightnessUp exec sudo light -A 5 bindsym XF86MonBrightnessDown exec sudo light -U 5 -# -# Input configuration +# }}} +# Input configuration {{{ # input "1739:30966:Synaptics_TM3096-006" { dwt enabled @@ -44,9 +44,10 @@ xkb_layout br xkb_numlock enabled } -# -# Key bindings: -# +# }}} +# Key bindings: {{{ + # Basic {{{ + # # Start a terminal bindsym $mod+Return exec $term @@ -74,9 +75,9 @@ # Exit sway (logs you out of your Wayland session) bindsym $mod+Shift+e exec swaynag -t warning -m 'Do you really want to exit sway?' -b 'Yes, exit sway' 'swaymsg exit' -# -# Moving around: -# + # }}} + # Moving around: {{{ + # # Move your focus around bindsym $mod+$left focus left bindsym $mod+$down focus down @@ -99,9 +100,9 @@ bindsym $mod+Control+$up resize shrink height 10px bindsym $mod+Control+$right resize grow width 10px -# -# Workspaces: -# + # }}} + # Workspaces: {{{ + # # Switch to workspace bindsym $mod+1 workspace 1 bindsym $mod+2 workspace 2 @@ -129,9 +130,10 @@ assign [class=qutebrowser] workspace 2 assign [class=TelegramDesktop] workspace 10 assign [class=discord] workspace 10 -# -# Layout stuff: -# + + # }}} + # Layout stuff: {{{ + # # Splits bindsym $mod+b splith bindsym $mod+v splitv @@ -150,16 +152,16 @@ # Move focus to the parent container bindsym $mod+a focus parent -# -# Scratchpad: -# + # }}} + # Scratchpad: {{{ + # # Move the currently focused window to the scratchpad bindsym $mod+Shift+minus move scratchpad # Show the next scratchpad window bindsym $mod+minus scratchpad show -# -# Screenshots: -# + #}}} + # Screenshots: {{{ + # # Screens to file bindsym Print exec grim $(xdg-user-dir PICTURES)/$(date +'%Y-%m-%d-%H%M%S_grim.png') @@ -174,9 +176,9 @@ bindsym Control+Print exec grim -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') - | wl-copy -# -# PulseAudio: -# + # }}} + # PulseAudio: {{{ + # bindsym $mod+p exec ~/.config/scripts/pulse-sink for_window [app_id="pavucontrol"] floating enable @@ -190,8 +192,9 @@ bindsym XF86AudioNext exec mpc -q next bindsym XF86AudioPrev exec mpc -q prev -# -# Visual: + # }}} +# }}} +# Visual: {{{ # set $accent #CC575D set $aclite #CC575D50 @@ -213,8 +216,8 @@ smart_gaps on smart_borders on -# -# Daemons +# }}} +# Daemons {{{ # #Notification Daemon exec mako @@ -230,5 +233,7 @@ timeout 900 'swaylock -f' \ timeout 1800 'swaymsg "output * dpms off"' \ resume 'swaymsg "output * dpms on;reload"' \ +#}}} include /etc/sway/config.d/* +# vim:filetype=conf:foldmethod=marker