aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbdus <abdus@abdus.net>2021-06-04 19:20:51 +0530
committerAbdus <abdus@abdus.net>2021-06-04 19:20:51 +0530
commit6f6ab40139a4572d9dd94189c6113ced84ce34f9 (patch)
treee2d6b7a692fe4a939a717a81ea9931281af26492
parent0d85f82b1d49bdc8cf150062ae3b8a42efc8143e (diff)
downloaddotfiles-6f6ab40139a4572d9dd94189c6113ced84ce34f9.tar.bz2
dotfiles-6f6ab40139a4572d9dd94189c6113ced84ce34f9.zip
:zap: automated updates
-rw-r--r--sway/config17
-rw-r--r--vim/init.vim37
-rw-r--r--waybar/conf.d/config.material5
-rw-r--r--waybar/config5
-rw-r--r--waybar/style.css29
-rw-r--r--waybar/styles.d/style.material.css29
6 files changed, 89 insertions, 33 deletions
diff --git a/sway/config b/sway/config
index cc41910..92fc0e0 100644
--- a/sway/config
+++ b/sway/config
@@ -26,7 +26,7 @@ set $menu $dmenu
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
-output * background $HOME/Pictures/wallpaper/35.jpg fill
+output * background $HOME/Pictures/wallpaper/27.png fill
#
# Example configuration:
#
@@ -62,7 +62,7 @@ input * {
}
input "type:keyboard" {
- #xkb_options caps:escape
+ xkb_options caps:escape
#repeat_rate 10
repeat_delay 150
}
@@ -160,7 +160,7 @@ input "type:keyboard" {
bindsym $mod+Shift+Return exec $term --class launcher
# Open Browser
- bindsym $mod+Ctrl+b exec brave
+ bindsym $mod+Ctrl+b exec brave-beta --enable-features=UseOzonePlatform --ozone-platform=wayland
# Open Visual Studio Code
bindsym $mod+Ctrl+c exec code
@@ -289,16 +289,19 @@ exec_always {
font pango:Iosevka 10
-gaps outer 0
-gaps inner 0
+gaps outer -7
+gaps inner 7
smart_gaps on
+# for some reason, `gaps outer -7` does not work
+exec swaymsg gaps outer all set -- -7
+
hide_edge_borders smart_no_gaps
default_border pixel 0 # 3
# Window colors
# class border background text indicator child_border
-#client.focused #D8DEE9 #D8DEE9 #2E3440 #ffffff #D8DEE9
+client.focused #ffa000 #D8DEE9 #2E3440 #ffffff #ffa000
client.focused_inactive #011627 #011627 #011627 #011627 #011627
client.unfocused #011627 #011627 #615eff #011627 #011627
# client.urgent #cb6077 #3b3228 #ffffff #cb6077 #cb6077
@@ -312,5 +315,7 @@ client.unfocused #011627 #011627 #615eff #011627 #011
#exec_always mpv --loop-file='inf' ~/Music/TOP\ 40\ Songs\ of\ 2020\ 2021\ \(Best\ Hit\ Music\ Playlist\)\ on\ Spotify-_pLO4jFDeIc.webm # play music
exec_always newsboat -x reload # get feed articles
exec telegram-desktop -startintray
+#exec /opt/discord/Discord --start-minimized
+exec SSH_CRED="abdus@159.65.152.253" ~/scripts/sync-with-server.bash # watch file in Public/ and sync
include /etc/sway/config.d/*
diff --git a/vim/init.vim b/vim/init.vim
index 62c1ffe..2ff464f 100644
--- a/vim/init.vim
+++ b/vim/init.vim
@@ -22,7 +22,11 @@ set cursorline " highlight cursorline
set splitbelow splitright " new windows below and right of the current one
set foldmethod=indent " fold syntax based on indentation
-au BufRead,BufNewFile *.md set textwidth=80 " wrap lines exceeding 80 chars
+"au BufRead,BufNewFile *.md set textwidth=80 " wrap lines exceeding 80 chars
+"au BufRead,BufNewFile *.txt set textwidth=80 " wrap lines exceeding 80 chars
+
+autocmd FileType scss setl iskeyword+=@-@
+autocmd FileType sass setl iskeyword+=@-@
let g:mapleader = ',' " keybinding leader
@@ -96,7 +100,7 @@ let g:indentLine_showFirstIndentLevel = 1
let g:indentLine_setColors = 0
-let g:airline_section_b = '%{getcwd()}' " display cwd in sec-2 of the statusline
+"let g:airline_section_b = '%{getcwd()}' " display cwd in sec-2 of the statusline
let g:airline_powerline_fonts = 1 " use powerline fonts in airline
let g:airline#extensions#tabline#enabled = 1 " enable upper tabline
let g:airline#extensions#tabline#fnamemod = ':t' " no idea what this does
@@ -157,10 +161,14 @@ let g:ale_fixers['*'] = ['remove_trailing_lines', 'trim_whitespace']
" >- vim-wiki.vim
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let wiki_default = {}
+let wiki_default.ext = ".md"
let wiki_default.path = "~/vimwiki/"
let wiki_default.syntax = "markdown"
-let wiki_default.ext = ".md"
let wiki_default.path_html = "/tmp/vimwiki_html"
+let wiki_default.template_ext = ".tpl"
+let wiki_default.template_path = "~/vimwiki/templates/"
+let wiki_default.template_default = "default"
+let wiki_default.custom_wiki2html = "vimwiki_markdown"
let g:vimwiki_list = [wiki_default]
let g:vimwiki_global_ext = 0
@@ -279,6 +287,21 @@ endfunction
nnoremap gic :GitAddCommit<CR>
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" >- set go template page type
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+function DetectGoHtmlTmpl()
+ if expand('%:e') == "html" && search("{{") != 0
+ set filetype=gohtmltmpl
+ endif
+endfunction
+
+augroup filetypedetect
+ au! BufRead,BufNewFile * call DetectGoHtmlTmpl()
+augroup END
+
+
+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -314,6 +337,14 @@ map <F8> :tabn<CR>| " move to next tab
map <Leader>tc :tabclose<CR>| " close current tab
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" >- moving around
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+nnoremap <C-h> <C-w>h
+nnoremap <C-j> <C-w>j
+nnoremap <C-k> <C-w>k
+nnoremap <C-l> <C-w>l
+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" >- Emmet
diff --git a/waybar/conf.d/config.material b/waybar/conf.d/config.material
index 95a9153..af0fa21 100644
--- a/waybar/conf.d/config.material
+++ b/waybar/conf.d/config.material
@@ -1,7 +1,7 @@
{
// "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
- //"height": 20, // Waybar height (to be removed for auto height)
+ // "height": 20, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": [
@@ -83,7 +83,8 @@
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
- "format-wifi": "{bandwidthUpBits} <span color='limegreen'></span><span color='limegreen'></span> {bandwidthDownBits} ",
+ // "format-wifi": "{bandwidthUpBits} <span color='limegreen'></span><span color='limegreen'></span> {bandwidthDownBits} ",
+ "format-wifi": "",
"format-ethernet": "",
"format-linked": "(No IP) ",
"format-disconnected": "",
diff --git a/waybar/config b/waybar/config
index 95a9153..af0fa21 100644
--- a/waybar/config
+++ b/waybar/config
@@ -1,7 +1,7 @@
{
// "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
- //"height": 20, // Waybar height (to be removed for auto height)
+ // "height": 20, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": [
@@ -83,7 +83,8 @@
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
- "format-wifi": "{bandwidthUpBits} <span color='limegreen'></span><span color='limegreen'></span> {bandwidthDownBits} ",
+ // "format-wifi": "{bandwidthUpBits} <span color='limegreen'></span><span color='limegreen'></span> {bandwidthDownBits} ",
+ "format-wifi": "",
"format-ethernet": "",
"format-linked": "(No IP) ",
"format-disconnected": "",
diff --git a/waybar/style.css b/waybar/style.css
index fb44ab9..3ed45e7 100644
--- a/waybar/style.css
+++ b/waybar/style.css
@@ -9,7 +9,17 @@
/*font-weight: bold;*/
}
+.horizontal {
+ padding: 2px;
+}
+
+/*.horizontal:nth-child(2) {*/
+ /*padding: 0;*/
+/*}*/
+
+
window#waybar {
+ padding: 1000px;
color: #ffffff;
background-color: transparent;
border-bottom: none;
@@ -22,9 +32,10 @@ window#waybar.hidden {
}
#workspaces button {
- margin: 0px 0;
- padding: 0.5rem 0.9rem;
+ margin: 0px 0px;
+ padding: 0.5rem;
background: #2e3440;
+ border-radius: 0.4rem;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
@@ -67,10 +78,13 @@ window#waybar.hidden {
#custom-unreademail,
#custom-pacman-package-count,
#custom-icon-cube {
- margin: 0px 0;
+ margin: 0px 2px;
padding: 0.5rem 0.9rem;
- color: #d8dee9;
- background: #2e3440;
+ /*color: #d8dee9;*/
+ /*background: #2e3440;*/
+ color: #2e3440;
+ background: #f2bb9a;
+ border-radius: 0.4rem;
}
#clock {
@@ -99,7 +113,6 @@ label:focus {
background-color: #2e3440;
}
-
#backlight.icon {
color: #2e3440;
background: #d8dee9;
@@ -109,10 +122,6 @@ label:focus {
min-width: 20px;
}
-#network {
- color: #d8dee9;
-}
-
#network.disconnected {
color: #ff0000;
}
diff --git a/waybar/styles.d/style.material.css b/waybar/styles.d/style.material.css
index fb44ab9..3ed45e7 100644
--- a/waybar/styles.d/style.material.css
+++ b/waybar/styles.d/style.material.css
@@ -9,7 +9,17 @@
/*font-weight: bold;*/
}
+.horizontal {
+ padding: 2px;
+}
+
+/*.horizontal:nth-child(2) {*/
+ /*padding: 0;*/
+/*}*/
+
+
window#waybar {
+ padding: 1000px;
color: #ffffff;
background-color: transparent;
border-bottom: none;
@@ -22,9 +32,10 @@ window#waybar.hidden {
}
#workspaces button {
- margin: 0px 0;
- padding: 0.5rem 0.9rem;
+ margin: 0px 0px;
+ padding: 0.5rem;
background: #2e3440;
+ border-radius: 0.4rem;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
@@ -67,10 +78,13 @@ window#waybar.hidden {
#custom-unreademail,
#custom-pacman-package-count,
#custom-icon-cube {
- margin: 0px 0;
+ margin: 0px 2px;
padding: 0.5rem 0.9rem;
- color: #d8dee9;
- background: #2e3440;
+ /*color: #d8dee9;*/
+ /*background: #2e3440;*/
+ color: #2e3440;
+ background: #f2bb9a;
+ border-radius: 0.4rem;
}
#clock {
@@ -99,7 +113,6 @@ label:focus {
background-color: #2e3440;
}
-
#backlight.icon {
color: #2e3440;
background: #d8dee9;
@@ -109,10 +122,6 @@ label:focus {
min-width: 20px;
}
-#network {
- color: #d8dee9;
-}
-
#network.disconnected {
color: #ff0000;
}