From c3d6fe5d78a8f305a2134d6298c3da7f1eac114f Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 7 Apr 2020 18:32:53 +0300 Subject: torem alias --- .zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.zshrc b/.zshrc index 624c508..fa3a3c3 100644 --- a/.zshrc +++ b/.zshrc @@ -126,6 +126,7 @@ alias tp='trash-put' alias ls='exa' alias wim='nvim /home/yigit/Nextcloud/personal_wiki/index.wiki' alias ssh='TERM=xterm-256color ssh' +alias torem='cd /home/yigit/Nextcloud/remind/' RANGER_LOAD_DEFAULT_RC=FALSE; export RANGER_LOAD_DEFAULT_RC -- cgit v1.2.3-70-g09d2 From 9675be0beb82decf37b036b1a12e1a7303a584d6 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 7 Apr 2020 18:33:31 +0300 Subject: focus script uses my name --- .config/polybar/focus | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/polybar/focus b/.config/polybar/focus index fdf2f30..f375cc3 100755 --- a/.config/polybar/focus +++ b/.config/polybar/focus @@ -1,6 +1,6 @@ #!/usr/bin/env perl # shows active taskwarrior task on polybar -#Copyright © 2019 yourname +#Copyright © 2019 yigit #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by -- cgit v1.2.3-70-g09d2 From b4c2f14d3fc9bae8f45ec8ee3f059c9842cc70b9 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 7 Apr 2020 18:35:58 +0300 Subject: focus can be stopped --- .config/polybar/config##c.desktop,h.Maus | 1 + .taskrc##c.desktop,h.Maus | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.config/polybar/config##c.desktop,h.Maus b/.config/polybar/config##c.desktop,h.Maus index d074d43..46683f3 100644 --- a/.config/polybar/config##c.desktop,h.Maus +++ b/.config/polybar/config##c.desktop,h.Maus @@ -62,6 +62,7 @@ tray-position = right [module/focus] type = custom/script exec = ~/.config/polybar/focus +double-click-left = exec ~/.config/polybar/stop & interval = 10 [module/spotify] diff --git a/.taskrc##c.desktop,h.Maus b/.taskrc##c.desktop,h.Maus index d6e0a23..260d079 100644 --- a/.taskrc##c.desktop,h.Maus +++ b/.taskrc##c.desktop,h.Maus @@ -62,11 +62,17 @@ report.todoConky.filter = status:pending and due.after:now and due.before:l report.todoConky.dateformat = D-M-y H:N (A) ### report for focus script -report.custom_focus.columns = description -report.custom_focus.labels = Description +report.custom_focus.columns = description,start.age +report.custom_focus.labels = Description,active report.custom_focus.description = Task to feed to focus script report.custom_focus.filter = status:pending and +ACTIVE +### report for stopping the focused task +report.custom_stop.columns = id +report.custom_stop.labels = ID +report.custom_stop.description = Task id to feed to stop script +report.custom_stop.filter = status:pending and +ACTIVE + ### contexts context.home = +@home or +@online context.work = +@work or +@online -- cgit v1.2.3-70-g09d2 From b15437514ed4ab9531a5261982a06f7f5201f7f9 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 7 Apr 2020 18:36:18 +0300 Subject: vimrc changes --- .config/nvim/init.vim | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index fb68190..c4eb3b4 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -55,7 +55,7 @@ Plug 'machakann/vim-sandwich' Plug 'wellle/targets.vim' " indentation level text object Plug 'michaeljsmith/vim-indent-object' -" visual feedback for substitute +" visual feedback for substitute holy shit this is amazing Plug 'markonm/traces.vim' " insert mode completions from tmux panes Plug 'wellle/tmux-complete.vim' @@ -65,6 +65,8 @@ Plug 'junegunn/vim-peekaboo' Plug 'lfv89/vim-interestingwords' " swap delimited items Plug 'machakann/vim-swap' +" highliht occurances of word +Plug 'lfv89/vim-interestingwords' " reopen files at your last edit position Plug 'farmergreg/vim-lastplace' @@ -182,7 +184,7 @@ if executable('rg') set grepprg=rg\ --vimgrep\ --no-heading\ --smart-case endif -set diffopt+=internal,algorithm:patience +set diffopt=algorithm:patience " }}} @@ -230,8 +232,8 @@ nnoremap l " Disable highlight when is pressed nnoremap :noh -" Space will toggle folds! -nnoremap za +" Space used to toggle folds, now it's x (because x is d) +nnoremap "_x " checkmarks on vimwiki nmap v VimwikiToggleListItem -- cgit v1.2.3-70-g09d2 From 87b1be15d5967c144c2605d9475b1e63f4164aec Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 26 Apr 2020 01:59:55 +0300 Subject: polybar uses scientifica again --- .config/polybar/config##c.desktop,h.Maus | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.config/polybar/config##c.desktop,h.Maus b/.config/polybar/config##c.desktop,h.Maus index 46683f3..75d7f6e 100644 --- a/.config/polybar/config##c.desktop,h.Maus +++ b/.config/polybar/config##c.desktop,h.Maus @@ -48,17 +48,20 @@ border-bottom-color = ${colors.background} padding = 2 module-margin = 1 -font-0 = Cozette:antialias=false;2 +font-0 = scientifica:antialias=false;1 font-1 = Lato:size=10;1 font-2 = Raleway:size=10;1 font-3 = FuraCode Nerd Font:size=12;2 modules-left = i3 pulseaudio-control spotify modules-center = xwindow -modules-right = focus date time xkeyboard +modules-right = cpu focus date time xkeyboard tray-position = right +[module/cpu] +type = internal/cpu + [module/focus] type = custom/script exec = ~/.config/polybar/focus -- cgit v1.2.3-70-g09d2 From d6da34451693c994d05548f433f2d91c24bb99e0 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 6 May 2020 16:24:31 +0300 Subject: change dunst history shortcut --- .config/dunst/dunstrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index 523d3ba..7f72108 100755 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -35,7 +35,7 @@ class = Dunst [shortcuts] close = ctrl+space close_all = ctrl+shift+space -history = ctrl+grave +history = ctrl+0 context = ctrl+shift+period [urgency_low] -- cgit v1.2.3-70-g09d2 From c2be80b1ece9ebf2c9fff341c6a0aec7ffb7ee9e Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 6 May 2020 16:24:54 +0300 Subject: add ruby to path --- .zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.zshrc b/.zshrc index fa3a3c3..82d3530 100644 --- a/.zshrc +++ b/.zshrc @@ -160,3 +160,6 @@ function te { } source /home/yigit/.config/broot/launcher/bash/br + +# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. +export PATH="$PATH:$HOME/.rvm/bin" -- cgit v1.2.3-70-g09d2 From e4aac92cb8a790846ddc116e76a9b72a0b8a978c Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 6 May 2020 16:25:25 +0300 Subject: change maus i3 keys to magicforce --- .config/i3/config##c.desktop,h.Maus | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.config/i3/config##c.desktop,h.Maus b/.config/i3/config##c.desktop,h.Maus index f169440..39a2dc3 100644 --- a/.config/i3/config##c.desktop,h.Maus +++ b/.config/i3/config##c.desktop,h.Maus @@ -20,6 +20,7 @@ exec --no-startup-id redshift-gtk & exec --no-startup-id nm-applet & exec --no-startup-id xrandr --output DVI-D-0 --off --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate left --output DVI-I-1 --primary --mode 1920x1080 --pos 1132x608 --rotate normal --output DVI-I-0 --off --output DP-1 --off --output DP-0 --off & exec --no-startup-id xdotool key --clearmodifiers Num_Lock +exec --no-startup-id udiskie --automount --file-manager thunar --tray --notify & # swap caps lock and escape, set keyboard layout exec --no-startup-id setxkbmap -model pc105 -layout tr,us -variant ,colemak -option grp:alt_shift_toggle,caps:backspace @@ -71,12 +72,21 @@ bindcode $mod+35 exec --no-startup-id "setxkbmap -model pc105 -layout us,us,tr - bindsym Print exec flameshot gui # media keys -bindsym $mod+Up exec --no-startup-id "amixer set Master 2%+ && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" -bindsym $mod+Down exec --no-startup-id "amixer set Master 2%- && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" -bindsym $mod+m exec --no-startup-id "amixer set Master toggle && if amixer get Master | grep -Fq '[off]'; then volnoti-show -m; else volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1); fi" -bindsym $mod+q exec --no-startup-id playerctl play-pause -bindsym $mod+Left exec --no-startup-id playerctl previous -bindsym $mod+Right exec --no-startup-id playerctl next +bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+ && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" +bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%- && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" +bindsym XF86AudioMute exec --no-startup-id "amixer set Master toggle && if amixer get Master | grep -Fq '[off]'; then volnoti-show -m; else volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1); fi" +bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause +bindsym XF86AudioPrev exec --no-startup-id playerctl previous +bindsym XF86AudioNext exec --no-startup-id playerctl next +bindsym XF86Tools exec --no-startup-id mpc toggle + +# # media keys +# bindsym $mod+Up exec --no-startup-id "amixer set Master 2%+ && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" +# bindsym $mod+Down exec --no-startup-id "amixer set Master 2%- && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" +# bindsym $mod+m exec --no-startup-id "amixer set Master toggle && if amixer get Master | grep -Fq '[off]'; then volnoti-show -m; else volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1); fi" +# bindsym $mod+q exec --no-startup-id playerctl play-pause +# bindsym $mod+Left exec --no-startup-id playerctl previous +# bindsym $mod+Right exec --no-startup-id playerctl next # Make the currently focused window a scratchpad bindsym $mod+Shift+minus move scratchpad @@ -173,8 +183,8 @@ bindsym $mod+Shift+8 move container to workspace $ws8 bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+0 move container to workspace $ws10 -bindsym $mod+Shift+greater move container to output right -bindsym $mod+Shift+less move container to output left +bindsym $mod+z move container to output right +# bindsym $mod+Shift+less move container to output left # reload the configuration file bindsym $mod+Shift+c reload -- cgit v1.2.3-70-g09d2 From 7ab474ffe7c04065283258014fda4d2ab991041a Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 6 May 2020 16:26:07 +0300 Subject: we write blockchain a lot --- .config/nvim/after/plugin/abolish.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/nvim/after/plugin/abolish.vim b/.config/nvim/after/plugin/abolish.vim index e313ecb..a295819 100644 --- a/.config/nvim/after/plugin/abolish.vim +++ b/.config/nvim/after/plugin/abolish.vim @@ -12,3 +12,4 @@ iabbrev todaydatetime =strftime("%F %T") iabbrev todaydate =strftime("%F") iabbrev pwn English Princeton WordNet iabbrev omw Open Multilingual WordNet +iabbrev BC blockchain -- cgit v1.2.3-70-g09d2 From eae13004872f18c290791891b051a7a0691e4091 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 6 May 2020 16:26:49 +0300 Subject: we write blockchain a lot --- .config/nvim/spell/en.utf-8.add | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/nvim/spell/en.utf-8.add b/.config/nvim/spell/en.utf-8.add index 33ac00d..c78ddf8 100644 --- a/.config/nvim/spell/en.utf-8.add +++ b/.config/nvim/spell/en.utf-8.add @@ -43,3 +43,5 @@ unsecure replaceability Kerberos IoT +Blockchain +blockchain -- cgit v1.2.3-70-g09d2 From 9f0c652e8a668782987c68f38bf56b7ff52fea9e Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 6 May 2020 16:27:16 +0300 Subject: using mpd again --- .config/polybar/config##c.desktop,h.Maus | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.config/polybar/config##c.desktop,h.Maus b/.config/polybar/config##c.desktop,h.Maus index 75d7f6e..eca6920 100644 --- a/.config/polybar/config##c.desktop,h.Maus +++ b/.config/polybar/config##c.desktop,h.Maus @@ -53,7 +53,7 @@ font-1 = Lato:size=10;1 font-2 = Raleway:size=10;1 font-3 = FuraCode Nerd Font:size=12;2 -modules-left = i3 pulseaudio-control spotify +modules-left = i3 pulseaudio-control spotify mpd modules-center = xwindow modules-right = cpu focus date time xkeyboard @@ -80,22 +80,20 @@ format-padding = 0 exec = python /home/yigit/.config/polybar/spotify_status.py -f '{play_pause} {artist} - {song}' -p ' , ' ;契 -; [module/mpd] -; type = internal/mpd -; host = 127.0.0.1 -; port = 6600 +[module/mpd] +type = internal/mpd -; format-online = -; label-song = %artist% - %title% -; icon-pause =  -; icon-play =  -; icon-random = 咽 +format-online = +label-song = %artist% - %title% +icon-pause =  +icon-play =  +icon-random = 咽 -; toggle-on-foreground = ${colors.background_modules} -; toggle-off-foreground = ${colors.foreground_modules} +toggle-on-foreground = ${colors.background_modules} +toggle-off-foreground = ${colors.foreground_modules} -; format-offline = -; label-offline = mpd is offline +format-offline = +label-offline = mpd is offline [module/xwindow] type = internal/xwindow @@ -104,7 +102,6 @@ label = %title:0:70:...% y-offset = 10 label-padding = 1 -label-font = 1 label-empty =  label-empty-font = 3 -- cgit v1.2.3-70-g09d2 From 928f152eed1fdcdedd73e5cc75db929a6a66fac6 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 6 May 2020 16:27:37 +0300 Subject: winslab ssh config --- .ssh/config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.ssh/config b/.ssh/config index 2930dbb..b549e42 100644 --- a/.ssh/config +++ b/.ssh/config @@ -21,3 +21,7 @@ Host beast HostName 10.10.2.21 Port 22 User yigit +Host wins.ceng.metu.edu.tr + Port 8083 + Preferredauthentications publickey + IdentityFile ~/.ssh/id_ed25519 -- cgit v1.2.3-70-g09d2 From 5de2c4d480ba0c88ca4ffae4a6defc5890f43477 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 9 May 2020 14:38:20 +0300 Subject: refactor compton to picom --- .config/compton/compton.conf | 94 ------------------------------------- .config/i3/config##c.desktop,h.Maus | 2 +- .config/picom/picom.conf | 94 +++++++++++++++++++++++++++++++++++++ 3 files changed, 95 insertions(+), 95 deletions(-) delete mode 100644 .config/compton/compton.conf create mode 100644 .config/picom/picom.conf diff --git a/.config/compton/compton.conf b/.config/compton/compton.conf deleted file mode 100644 index 357f978..0000000 --- a/.config/compton/compton.conf +++ /dev/null @@ -1,94 +0,0 @@ -# Shadow -shadow = true; -shadow-radius = 0; -shadow-offset-x = 5; -shadow-offset-y = 5; -log-level = "warn"; -# log-file = "/path/to/your/log/file"; -shadow-opacity = 0.8; -#shadow-red = 0.33; -#shadow-green = 0.33; -#shadow-blue = 0.33; -shadow-exclude = [ - "name = 'Notification'", - "class_g = 'Conky'", - "class_g ?= 'Notify-osd'", - "class_g = 'Cairo-clock'", - "_GTK_FRAME_EXTENTS@:c" -]; -# shadow-exclude = "n:e:Notification"; -# shadow-exclude-reg = "x10+0+0"; -# xinerama-shadow-crop = true; - -# Opacity -inactive-opacity = 0.95; -# active-opacity = 0.8; -frame-opacity = 1.0; -inactive-opacity-override = false; -inactive-dim = 0.0; -# inactive-dim-fixed = true; -#blur-background = true; -# blur-background-frame = true; -blur-kern = "3x3box"; -# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"; -# blur-background-fixed = true; -blur-background-exclude = [ - "window_type = 'dock'", - "window_type = 'desktop'", - "_GTK_FRAME_EXTENTS@:c" -]; -opacity-rule = [ - "100:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_FULLSCREEN'", - "100:_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_FULLSCREEN'", - "100:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_FULLSCREEN'", - "100:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_FULLSCREEN'", - "100:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_FULLSCREEN'", - "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" -]; -# Fading -fading = true; -# fade-delta = 30; -fade-in-step = 0.03; -fade-out-step = 0.03; -# no-fading-openclose = true; -# no-fading-destroyed-argb = true; -fade-exclude = [ ]; - -# Other -backend = "glx"; -mark-wmwin-focused = true; -mark-ovredir-focused = true; -# use-ewmh-active-win = true; -detect-rounded-corners = true; -detect-client-opacity = true; -refresh-rate = 0; -vsync = "opengl-swc"; -paint-on-overlay = true; -sw-opti = false; -# unredir-if-possible = true; -# unredir-if-possible-delay = 5000; -# unredir-if-possible-exclude = [ ]; -focus-exclude = [ "class_g = 'Cairo-clock'" ]; -detect-transient = true; -detect-client-leader = true; -invert-color-include = [ ]; -# resize-damage = 1; - -# GLX backend -glx-no-stencil = true; -glx-copy-from-front = false; -glx-swap-method = "undefined"; -# glx-no-rebind-pixmap = true; -# glx-swap-method = "undefined"; -# glx-use-gpushader4 = true; -# xrender-sync = true; -# xrender-sync-fence = true; -# Window type settings -wintypes: -{ - tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; }; - dock = { shadow = false; } - dnd = { shadow = false; } - popup_menu = { fade = true; shadow = true; opacity = 1; focus = true; full-shadow = true; } - dropdown_menu = { opacity = 1; } -}; diff --git a/.config/i3/config##c.desktop,h.Maus b/.config/i3/config##c.desktop,h.Maus index 39a2dc3..a6d85d7 100644 --- a/.config/i3/config##c.desktop,h.Maus +++ b/.config/i3/config##c.desktop,h.Maus @@ -13,7 +13,7 @@ exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer no #autostart exec --no-startup-id xsettingsd & -exec --no-startup-id compton -b & +exec --no-startup-id picom -b & exec --no-startup-id nextcloud & exec --no-startup-id copyq & exec --no-startup-id redshift-gtk & diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf new file mode 100644 index 0000000..67c459f --- /dev/null +++ b/.config/picom/picom.conf @@ -0,0 +1,94 @@ +# Shadow +shadow = true; +shadow-radius = 0; +shadow-offset-x = 5; +shadow-offset-y = 5; +log-level = "warn"; +# log-file = "/path/to/your/log/file"; +shadow-opacity = 0.8; +#shadow-red = 0.33; +#shadow-green = 0.33; +#shadow-blue = 0.33; +shadow-exclude = [ + "name = 'Notification'", + "class_g = 'Conky'", + "class_g ?= 'Notify-osd'", + "class_g = 'Cairo-clock'", + "_GTK_FRAME_EXTENTS@:c" +]; +# shadow-exclude = "n:e:Notification"; +# shadow-exclude-reg = "x10+0+0"; +# xinerama-shadow-crop = true; + +# Opacity +inactive-opacity = 0.95; +# active-opacity = 0.8; +frame-opacity = 1.0; +inactive-opacity-override = false; +inactive-dim = 0.0; +# inactive-dim-fixed = true; +#blur-background = true; +# blur-background-frame = true; +blur-kern = "3x3box"; +# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"; +# blur-background-fixed = true; +blur-background-exclude = [ + "window_type = 'dock'", + "window_type = 'desktop'", + "_GTK_FRAME_EXTENTS@:c" +]; +opacity-rule = [ + "100:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_FULLSCREEN'", + "100:_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_FULLSCREEN'", + "100:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_FULLSCREEN'", + "100:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_FULLSCREEN'", + "100:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_FULLSCREEN'", + "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" +]; +# Fading +fading = true; +# fade-delta = 30; +fade-in-step = 0.03; +fade-out-step = 0.03; +# no-fading-openclose = true; +# no-fading-destroyed-argb = true; +fade-exclude = [ ]; + +# Other +backend = "glx"; +mark-wmwin-focused = true; +mark-ovredir-focused = true; +# use-ewmh-active-win = true; +detect-rounded-corners = true; +detect-client-opacity = true; +refresh-rate = 0; +vsync = "opengl-swc"; +# paint-on-overlay = true; +sw-opti = false; +# unredir-if-possible = true; +# unredir-if-possible-delay = 5000; +# unredir-if-possible-exclude = [ ]; +focus-exclude = [ "class_g = 'Cairo-clock'" ]; +detect-transient = true; +detect-client-leader = true; +invert-color-include = [ ]; +# resize-damage = 1; + +# GLX backend +glx-no-stencil = true; +glx-copy-from-front = false; +glx-swap-method = "undefined"; +# glx-no-rebind-pixmap = true; +# glx-swap-method = "undefined"; +# glx-use-gpushader4 = true; +# xrender-sync = true; +# xrender-sync-fence = true; +# Window type settings +wintypes: +{ + tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; }; + dock = { shadow = false; } + dnd = { shadow = false; } + popup_menu = { fade = true; shadow = true; opacity = 1; focus = true; full-shadow = true; } + dropdown_menu = { opacity = 1; } +}; -- cgit v1.2.3-70-g09d2 From b75d7a2b07e1fd189084da3ffafeab090278e95d Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 9 May 2020 14:44:19 +0300 Subject: bunch of vimrc changes --- .config/nvim/init.vim | 52 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 19 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index c4eb3b4..3ea30d7 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -1,6 +1,9 @@ "{{{ Plugs call plug#begin('~/.local/share/nvim/plugged') +" latex " had to move vimtex to top to avoid a difficult error +Plug 'lervag/vimtex' + " completion Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } Plug 'lionawurscht/deoplete-biblatex' @@ -26,7 +29,7 @@ Plug 'tmsvg/pear-tree' Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'junegunn/fzf.vim' -" tree explorer +" tree explorer, i don't use this as much but don't like netrw either Plug 'scrooloose/nerdtree' " displays tags ordered by scope Plug 'majutsushi/tagbar' @@ -42,31 +45,25 @@ Plug 'vimwiki/vimwiki' Plug 'junegunn/goyo.vim' " highlights the current paragraph Plug 'junegunn/limelight.vim' -" latex -Plug 'lervag/vimtex' -" text alignment +" text alignment \w :Tab Plug 'godlygeek/tabular' -" move selections up and down +" move selections up and down with alt+[j,k] Plug 'matze/vim-move' -" search/select/edit sandwiched textobjects +" surround text objects; sa, sr and sd Plug 'machakann/vim-sandwich' " provide additional text objects Plug 'wellle/targets.vim' -" indentation level text object +" indentation level text object, ia, ii Plug 'michaeljsmith/vim-indent-object' " visual feedback for substitute holy shit this is amazing Plug 'markonm/traces.vim' -" insert mode completions from tmux panes -Plug 'wellle/tmux-complete.vim' " see the contents of registers on "/ Plug 'junegunn/vim-peekaboo' " use k to highlight multiple words Plug 'lfv89/vim-interestingwords' -" swap delimited items +" swap delimited items using g>, g< Plug 'machakann/vim-swap' -" highliht occurances of word -Plug 'lfv89/vim-interestingwords' " reopen files at your last edit position Plug 'farmergreg/vim-lastplace' @@ -74,7 +71,7 @@ Plug 'farmergreg/vim-lastplace' Plug 'airblade/vim-gitgutter' " Conflict merger Plug 'christoomey/vim-conflicted' -" jump to location by 2 characters +" jump to location by 2 characters, ` Plug 'justinmk/vim-sneak' " splits delete into cut and delete @@ -104,7 +101,6 @@ Plug 'tpope/vim-dispatch' " fancy start screen Plug 'mhinz/vim-startify' Plug 'ryanoasis/vim-devicons' " asks to be placed last, sure - call plug#end() " required "}}} @@ -124,6 +120,19 @@ autocmd VimResized * :wincmd = autocmd FileType markdown,tex setlocal spell "}}} +" Functions {{{ +function! CreatePaper(citekey) + exe "e! " . fnameescape("~/Nextcloud/personal_wiki/papers/" . a:citekey . ".wiki") + + let l:timestap="Report Created at: " . strftime("%c") + let l:text="= Came From =\n\n= Takeaways =\n\n= Might Go To =\n\n" + + put! =l:timestap + put =l:text + +endfunction +" }}} Function " + "{{{Misc Settings " Use deoplete. @@ -197,6 +206,10 @@ colorscheme onedark "{{{ Mappings +" If you like "Y" to work from the cursor to the end of line (which is more +" logical, but not Vi-compatible) +map Y y$ + " Open the TagBar Plugin nnoremap :TagbarToggle " Open NERDTree @@ -326,11 +339,12 @@ let g:ledger_fillstring = ' ~' "{{{ UltiSnips set runtimepath+=~/.vim/my-snippets/ -let g:UltiSnipsEditSplit="vertical" -let g:UltiSnipsSnippetsDir=$HOME.'/.vim/my-snippets/UltiSnips' +let g:UltiSnipsEditSplit = "vertical" +let g:UltiSnipsSnippetsDir = $HOME.'/.vim/my-snippets/UltiSnips' " ctrl + l expands the snippet, c + j/k navigates placeholders let g:UltiSnipsExpandTrigger = "" +let g:UltiSnipsEnableSnipMate = "1" "}}} "{{{ vim-startify @@ -370,10 +384,10 @@ let g:vimwiki_global_ext = 0 "}}} " {{{ vimtex -let g:vimtex_view_method = 'zathura' +let g:vimtex_view_method='zathura' let g:tex_flavor='latex' -let g:vimtex_quickfix_mode = 0 -let g:polyglot_disabled = ['latex', 'tex', 'ledger'] +let g:vimtex_quickfix_mode=0 +let g:polyglot_disabled=['latex', 'tex', 'ledger'] " }}} " {{{ Gutentags -- cgit v1.2.3-70-g09d2 From 1704f5fad55928722fe61ec4d489a3c30330b955 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 9 May 2020 14:44:52 +0300 Subject: zathura forward/reverse search with vim --- .config/zathura/zathurarc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc index 58b466d..5ac5022 100644 --- a/.config/zathura/zathurarc +++ b/.config/zathura/zathurarc @@ -35,3 +35,5 @@ set recolor "true" set recolor-keephue "false" map feedkeys ":write /home/yigit/Downloads/toPrint/toPrint_staging" +set synctex true +set syntex-editor-command "nvr --remote +%line %file"" -- cgit v1.2.3-70-g09d2 From 38d6f7d958df4cc38a8670bf296142f13d1f3d66 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 9 May 2020 14:45:10 +0300 Subject: fix ledger snippets to is bank --- .vim/my-snippets/UltiSnips/ledger.snippets | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.vim/my-snippets/UltiSnips/ledger.snippets b/.vim/my-snippets/UltiSnips/ledger.snippets index d393441..c0a7eb7 100644 --- a/.vim/my-snippets/UltiSnips/ledger.snippets +++ b/.vim/my-snippets/UltiSnips/ledger.snippets @@ -3,29 +3,29 @@ snippet c "New Checking Transaction" b ${1:`!v strftime("%Y")`}-${2:`!v strftime("%m")`}-${3:`!v strftime("%d")`} ${4:Payee} Expenses:${5:} ${6:0.00} TL - Assets:Checking$0 + Assets:Maas$0 endsnippet snippet l "New Liabilities Transaction" b ${1:`!v strftime("%Y")`}-${2:`!v strftime("%m")`}-${3:`!v strftime("%d")`} ${4:Payee} Expenses:${5:} ${6:0.00} TL - Liabilities:Afili Bonus$0 + Liabilities:Maximum$0 endsnippet snippet a "New Asmaalti Transaction" b ${1:`!v strftime("%Y")`}-${2:`!v strftime("%m")`}-${3:`!v strftime("%d")`} Asmaalti Piknik Expenses:Food:Eating Out ${4:0.00} TL - ${5:Assets:Checking}$0 + ${5:Assets:Maas}$0 endsnippet snippet y "New Yemeksepeti Transaction" b ${1:`!v strftime("%Y")`}-${2:`!v strftime("%m")`}-${3:`!v strftime("%d")`} Yemeksepeti Expenses:Takeout ${4:0.00} TL - ${5:Liabilities:Afili Bonus}$0 + ${5:Liabilities:Maximum}$0 endsnippet snippet m "New Migros Transaction" b ${1:`!v strftime("%Y")`}-${2:`!v strftime("%m")`}-${3:`!v strftime("%d")`} Migros Market Expenses:Food:Groceries ${4:0.00} TL - ${5:Assets:Checking}$0 + ${5:Assets:Maas}$0 endsnippet -- cgit v1.2.3-70-g09d2 From 494e73fecbf8b9618085fa03059675b58bee20a9 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 10 May 2020 18:15:34 +0300 Subject: fix polybar sink icon --- .config/polybar/pulseaudio-control.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/polybar/pulseaudio-control.sh b/.config/polybar/pulseaudio-control.sh index a080d65..51247fd 100755 --- a/.config/polybar/pulseaudio-control.sh +++ b/.config/polybar/pulseaudio-control.sh @@ -14,7 +14,7 @@ VOLUME_ICONS=( " " " " " " ) # Volume icons array, from lower volume t MUTED_ICON=" " # Muted volume icon MUTED_COLOR="%{F#A9AA83}" # Color when the audio is muted DEFAULT_SINK_ICON="" # The default sink icon if a custom one isn't found -CUSTOM_SINK_ICONS=("" "" "") # Custom sink icons in index of sink order +CUSTOM_SINK_ICONS=("" "" "") # Custom sink icons in index of sink order NOTIFICATIONS="yes" # Notifications when switching sinks if enabled SINK_BLACKLIST=( ) # Index blacklist for sinks when switching between them -- cgit v1.2.3-70-g09d2 From 8a15cd1053cb19a6dfae2a0f6ef1e5750d5d3402 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 12 May 2020 12:26:20 +0300 Subject: track arandr config --- .screenlayout/weird.sh##c.desktop,h.Maus | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 .screenlayout/weird.sh##c.desktop,h.Maus diff --git a/.screenlayout/weird.sh##c.desktop,h.Maus b/.screenlayout/weird.sh##c.desktop,h.Maus new file mode 100755 index 0000000..e1e8041 --- /dev/null +++ b/.screenlayout/weird.sh##c.desktop,h.Maus @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output DVI-D-0 --off --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate left --output DVI-I-1 --primary --mode 1920x1080 --pos 1132x608 --rotate normal --output DVI-I-0 --off --output DP-1 --off --output DP-0 --off -- cgit v1.2.3-70-g09d2 From abab47a7af5319aba0b0ce2a592db888c7fb469e Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 12 May 2020 12:35:29 +0300 Subject: move stuff around --- .config/i3/config##c.desktop,h.Maus | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3/config##c.desktop,h.Maus b/.config/i3/config##c.desktop,h.Maus index a6d85d7..65449e2 100644 --- a/.config/i3/config##c.desktop,h.Maus +++ b/.config/i3/config##c.desktop,h.Maus @@ -14,6 +14,7 @@ exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer no #autostart exec --no-startup-id xsettingsd & exec --no-startup-id picom -b & +exec --no-startup-id flashfocus & exec --no-startup-id nextcloud & exec --no-startup-id copyq & exec --no-startup-id redshift-gtk & @@ -35,7 +36,6 @@ exec --no-startup-id conky --daemonize -c ~/.config/conky/task.conf # set the wallpaper last (hopefully after xrandr) exec --no-startup-id ~/.fehbg -exec_always --no-startup-id flashfocus # Font for window titles font pango:Lato 11 -- cgit v1.2.3-70-g09d2 From dd1bcc255635b9aeef4d593a4add067b66c0c007 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 12 May 2020 12:35:43 +0300 Subject: disable firefox autostart --- .config/i3/config##c.desktop,h.Maus | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3/config##c.desktop,h.Maus b/.config/i3/config##c.desktop,h.Maus index 65449e2..78691d1 100644 --- a/.config/i3/config##c.desktop,h.Maus +++ b/.config/i3/config##c.desktop,h.Maus @@ -279,7 +279,7 @@ for_window [class="Zotero" instance="Toplevel" title="Progress"] floating enable assign [class="^Steam$"] 9 assign [class="^Thunderbird$"] 8 -exec --no-startup-id i3-msg 'exec /usr/bin/firefox;move container to output right' +# exec --no-startup-id i3-msg 'exec /usr/bin/firefox;move container to output right' # class border backgr. text indicator child_border client.focused #458588 #285577 #ffffff #458588 #285577 -- cgit v1.2.3-70-g09d2 From 911c6b41aafaf9686d9fdb709b5b92303255979f Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 12 May 2020 12:35:54 +0300 Subject: disable mouse warping --- .config/i3/config##c.desktop,h.Maus | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/i3/config##c.desktop,h.Maus b/.config/i3/config##c.desktop,h.Maus index 78691d1..0fccdce 100644 --- a/.config/i3/config##c.desktop,h.Maus +++ b/.config/i3/config##c.desktop,h.Maus @@ -294,3 +294,4 @@ client.background #ffffff hide_edge_borders smart workspace_auto_back_and_forth yes focus_follows_mouse no +mouse_warping none -- cgit v1.2.3-70-g09d2 From 27b5443fe21bdb2d1f48405501c683e6d077cbbd Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 12 May 2020 12:38:28 +0300 Subject: migrate to moonfly --- .config/kitty/kitty.conf | 47 ++++++++++++++++++------------------ .config/nvim/init.vim | 10 ++++---- .config/zathura/zathurarc | 61 +++++++++++++++++++++++++++-------------------- 3 files changed, 64 insertions(+), 54 deletions(-) diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf index 08a2ab7..7629b57 100644 --- a/.config/kitty/kitty.conf +++ b/.config/kitty/kitty.conf @@ -78,29 +78,30 @@ inactive_tab_font_style normal #: Color scheme {{{ -# Dark - -foreground #979eab -background #282c34 -cursor #cccccc -color0 #282c34 -color1 #e06c75 -color2 #98c379 -color3 #e5c07b -color4 #61afef -color5 #be5046 -color6 #56b6c2 -color7 #979eab -color8 #393e48 -color9 #d19a66 -color10 #56b6c2 -color11 #e5c07b -color12 #61afef -color13 #be5046 -color14 #56b6c2 -color15 #abb2bf -selection_foreground #282c34 -selection_background #979eab +# moonfly +# https://github.com/bluz71/vim-moonfly-colors/blob/master/terminal_themes/kitty-theme.conf + +background #080808 +foreground #b2b2b2 +cursor #9e9e9e +color0 #373c40 +color1 #ff5454 +color2 #8cc85f +color3 #e3c78a +color4 #80a0ff +color5 #d183e8 +color6 #7ee0ce +color7 #de935f +color8 #f09479 +color9 #f74782 +color10 #42cf89 +color11 #cfcfb0 +color12 #78c2ff +color13 #ae81ff +color14 #85dc85 +color15 #e2637f +selection_background #b2ceee +selection_foreground #080808 #: }}} diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 3ea30d7..36e62c0 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -34,10 +34,11 @@ Plug 'scrooloose/nerdtree' " displays tags ordered by scope Plug 'majutsushi/tagbar' " status/tabline -Plug 'bling/vim-airline' +Plug 'vim-airline/vim-airline' +Plug 'vim-airline/vim-airline-themes' " color theme of $CURRENT_YEAR -Plug 'joshdick/onedark.vim' +Plug 'bluz71/vim-moonfly-colors' " Personal wiki Plug 'vimwiki/vimwiki' @@ -198,9 +199,9 @@ set diffopt=algorithm:patience " }}} "{{{Look and Feel -let g:onedark_terminal_italics=1 set termguicolors -colorscheme onedark +colorscheme moonfly +let g:moonflyUndercurls = 0 " }}} @@ -302,7 +303,6 @@ let g:tagbar_width = 25 "{{{ Airline let g:airline_powerline_fonts = 1 -let g:airline_theme='onedark' let g:airline#extensions#tabline#formatter = 'unique_tail' let g:airline#extensions#tabline#enabled = 1 let g:airline_mode_map = {} diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc index 5ac5022..a0759f3 100644 --- a/.config/zathura/zathurarc +++ b/.config/zathura/zathurarc @@ -1,39 +1,48 @@ -set selection-clipboard clipboard -set incremental-search "true" +set selection-clipboard "clipboard" +set incremental-search "true" +set guioptions "shv" -set default-bg "#282c34" -set default-fg "#353b45" +set default-fg "#9e9e9e" +set default-bg "#0e0e0e" -set statusbar-fg "#c8ccd4" -set statusbar-bg "#3e4451" +set recolor-darkcolor "#b2b2b2" +set recolor-lightcolor "#080808" -set inputbar-bg "#282c34" -set inputbar-fg "#c8ccd4" +set statusbar-fg "#b2b2b2" +set statusbar-bg "#080808" -set notification-bg "#282c34" -set notification-fg "#c8ccd4" +set inputbar-fg "#9e9e9e" +set inputbar-bg "#080808" -set notification-error-bg "#282c34" -set notification-error-fg "#e06c75" +set notification-fg "#c8ccd4" +set notification-bg "#282c34" -set notification-warning-bg "#282c34" -set notification-warning-fg "#e06c75" +set notification-error-fg "#ff5454" +set notification-error-bg "#080808" -set highlight-color "#e5c07b" -set highlight-active-color "#61afef" +set notification-warning-fg "#e3c78a" +set notification-warning-bg "#080808" -set completion-bg "#353b45" -set completion-fg "#61afef" +set highlight-color "#e5c07b" +set highlight-active-color "#ff5454" -set completion-highlight-fg "#c8ccd4" -set completion-highlight-bg "#61afef" +set completion-fg "#80a0ff" +set completion-bg "#080808" -set recolor-lightcolor "#282c34" -set recolor-darkcolor "#b6bdca" +set completion-highlight-fg "#080808" +set completion-highlight-bg "#80a0ff" -set recolor "true" -set recolor-keephue "false" +set tabbar-fg "#f74782" +set tabbar-bg "#080808" -map feedkeys ":write /home/yigit/Downloads/toPrint/toPrint_staging" -set synctex true +set index-fg "#9e9e9e" +set index-bg "#080808" +set index-active-fg "#080808" +set index-active-bg "#8cc85f" + +set recolor "true" +set recolor-keephue "false" +set synctex "true" set syntex-editor-command "nvr --remote +%line %file"" + +map feedkeys ":write /home/yigit/Downloads/toPrint/toPrint_staging" -- cgit v1.2.3-70-g09d2 From baf7fef97f1fe2f1bbe8159f5a5a928a2eba73be Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 12 May 2020 12:38:49 +0300 Subject: update picom conf from compton --- .config/picom/picom.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf index 67c459f..5d4b9ce 100644 --- a/.config/picom/picom.conf +++ b/.config/picom/picom.conf @@ -4,7 +4,7 @@ shadow-radius = 0; shadow-offset-x = 5; shadow-offset-y = 5; log-level = "warn"; -# log-file = "/path/to/your/log/file"; +# log-file = "~/.picom.log"; shadow-opacity = 0.8; #shadow-red = 0.33; #shadow-green = 0.33; @@ -62,7 +62,7 @@ mark-ovredir-focused = true; detect-rounded-corners = true; detect-client-opacity = true; refresh-rate = 0; -vsync = "opengl-swc"; +vsync = true; # paint-on-overlay = true; sw-opti = false; # unredir-if-possible = true; @@ -77,7 +77,7 @@ invert-color-include = [ ]; # GLX backend glx-no-stencil = true; glx-copy-from-front = false; -glx-swap-method = "undefined"; +use-damage = true # glx-no-rebind-pixmap = true; # glx-swap-method = "undefined"; # glx-use-gpushader4 = true; -- cgit v1.2.3-70-g09d2