From 92d39143e2c1a9af85e1f99801005f458046a1fa Mon Sep 17 00:00:00 2001
From: Yigit Sever
Date: Sat, 23 Oct 2021 00:14:25 +0300
Subject: td: use correct nextcloud
---
.local/bin/td | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.local/bin/td b/.local/bin/td
index f15c0c6..dad71f1 100755
--- a/.local/bin/td
+++ b/.local/bin/td
@@ -21,6 +21,6 @@ if [[ $? -ne 0 ]]; then
exit 0
fi
-echo REM "${task_date}" AT "${task_time}" +45 *15 MSG %\""${task_description}"%\" %c% >> "${HOME}/nextcloud/remind/050-events.rem"
+echo REM "${task_date}" AT "${task_time}" +45 *15 MSG %\""${task_description}"%\" %c% >> "${HOME}/nextcloud/virtuals/remind/050-events.rem"
notify-send "notification set!" "${task_date} at ${task_time}" --app-name="remind" --icon="checkmark"
--
cgit v1.2.3-70-g09d2
From fc85aa0d21b745493c51a3f73d690d71cd6dbe69 Mon Sep 17 00:00:00 2001
From: Yigit Sever
Date: Sun, 24 Oct 2021 00:00:08 +0300
Subject: notify_phone: oops
---
.local/bin/notify_phone | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.local/bin/notify_phone b/.local/bin/notify_phone
index 6228f73..adf1464 100755
--- a/.local/bin/notify_phone
+++ b/.local/bin/notify_phone
@@ -1,6 +1,6 @@
#!/bin/bash
-TOKEN=795983515:AAHAPgakm-BbRKNodF9a0z_OH2VDsIxpm_Q
+TOKEN=$(pass telegram/notifier)
CHAT_ID=4903620
INPUT=$@
MESSAGE=${INPUT:-"all done"}
--
cgit v1.2.3-70-g09d2
From 391ca33b25a4e1794b24fd821e02749ef0b5e61a Mon Sep 17 00:00:00 2001
From: Yigit Sever
Date: Sun, 24 Oct 2021 02:02:30 +0300
Subject: dunst: shortcuts deprecated, geometry deprecated
---
.config/dunst/dunstrc | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc
index f9e0566..731f8d9 100755
--- a/.config/dunst/dunstrc
+++ b/.config/dunst/dunstrc
@@ -1,7 +1,10 @@
[global]
monitor = 0
follow = keyboard
- geometry = "248x64-32+48"
+ width=248
+ height=64
+ origin=top-right
+ offset=32x48
indicate_hidden = yes
shrink = no
transparency = 00
@@ -37,12 +40,6 @@
title = Dunst
class = Dunst
-[shortcuts]
- close = ctrl+space
- close_all = ctrl+shift+space
- history = ctrl+0
- context = ctrl+shift+BackSpace
-
[urgency_low]
background = "#9ccfd885"
foreground = "#1f1d2e"
--
cgit v1.2.3-70-g09d2
From 9697b41a458c07f41d923b32d959e73a109dfee6 Mon Sep 17 00:00:00 2001
From: Yigit Sever
Date: Sun, 24 Oct 2021 15:00:22 +0300
Subject: scripts: use new dunst interface to pause
---
.config/polybar/focus | 1 -
.config/polybar/notification_pause.sh | 4 +---
.config/polybar/stop | 1 -
.local/bin/toggle_notifications.sh | 16 ++++++----------
4 files changed, 7 insertions(+), 15 deletions(-)
diff --git a/.config/polybar/focus b/.config/polybar/focus
index 42edffb..49d46d2 100755
--- a/.config/polybar/focus
+++ b/.config/polybar/focus
@@ -44,4 +44,3 @@ if ($task =~ m/^(.*)?\s(\d+\w+)$/g) {
print "$1 | $2";
}
}
-# print $task;
diff --git a/.config/polybar/notification_pause.sh b/.config/polybar/notification_pause.sh
index 1df1bd6..9bf6724 100755
--- a/.config/polybar/notification_pause.sh
+++ b/.config/polybar/notification_pause.sh
@@ -1,8 +1,6 @@
#!/usr/bin/env bash
-TOGGLE=$HOME/.local/share/.pause_notifications
-
-if [ ! -e $TOGGLE ]; then
+if ! $(dunstctl is-paused); then
echo
else
printf ""
diff --git a/.config/polybar/stop b/.config/polybar/stop
index 58f8741..1efd193 100755
--- a/.config/polybar/stop
+++ b/.config/polybar/stop
@@ -44,4 +44,3 @@ if ($task =~ m/^(\d+)(.*)$/g) {
exec(qq(dunstify --appname="task" --icon="kt-pause" "stopping" "$1"));
}
}
-
diff --git a/.local/bin/toggle_notifications.sh b/.local/bin/toggle_notifications.sh
index 9b700b5..6818728 100755
--- a/.local/bin/toggle_notifications.sh
+++ b/.local/bin/toggle_notifications.sh
@@ -1,14 +1,10 @@
#!/usr/bin/env bash
-TOGGLE=$HOME/.local/share/.pause_notifications
-
-if [ ! -e $TOGGLE ]; then
- touch $TOGGLE
- dunstify --appname="notifications" --icon="chronometer-pause" "pausing" -u low
- sleep 3
- killall -SIGUSR1 dunst # pause
-else
- rm $TOGGLE
- killall -SIGUSR2 dunst # resume
+if $(dunstctl is-paused); then
dunstify --appname="notifications" --icon="chronometer-start" "here's what happened" -u low
+ dunstctl set-paused false
+else
+ dunstify --appname="notifications" --icon="chronometer-pause" "pausing" -u low
+ sleep 2
+ dunstctl set-paused true
fi
--
cgit v1.2.3-70-g09d2
From 786552327efb5153cbd341ee8d2cf13f308f11e2 Mon Sep 17 00:00:00 2001
From: Yigit Sever
Date: Sun, 24 Oct 2021 15:00:45 +0300
Subject: nvim: move to new lualine fork
---
.config/nvim/lua/plugins.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua
index d8ef949..a122768 100644
--- a/.config/nvim/lua/plugins.lua
+++ b/.config/nvim/lua/plugins.lua
@@ -124,7 +124,7 @@ return require('packer').startup(function()
-- cursorline of the $CURRENT_YEAR
use {
- 'shadmansaleh/lualine.nvim',
+ 'nvim-lualine/lualine.nvim',
requires = {'kyazdani42/nvim-web-devicons', opt = true}
}
-- colour theme of the $CURRENT_YEAR
--
cgit v1.2.3-70-g09d2
From 5ca235e9dd3d0b9e344be9f53963dcd90b3e73db Mon Sep 17 00:00:00 2001
From: Yigit Sever
Date: Sun, 24 Oct 2021 15:01:05 +0300
Subject: scripts: add app_populator
---
.local/bin/app_populator | 9 +++++++++
1 file changed, 9 insertions(+)
create mode 100755 .local/bin/app_populator
diff --git a/.local/bin/app_populator b/.local/bin/app_populator
new file mode 100755
index 0000000..6182b98
--- /dev/null
+++ b/.local/bin/app_populator
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+# https://www.reddit.com/r/commandline/comments/q9skbh/how_to_remember_what_applications_you_have/
+#< Populates the applist
+# cat ~/.local/share/applist | fzf
+
+ls /usr/share/man/man1 2> /dev/null |
+ sed -e 's/\.1.*//' |
+ xargs whatis 2> /dev/null |
+ sed -e '/unknown subject/d' -e 's/ *- / - /' > ~/.local/share/applist
--
cgit v1.2.3-70-g09d2
From 266e4d22e816c4ef3c0954141edaecf11fbe0d83 Mon Sep 17 00:00:00 2001
From: Yigit Sever
Date: Sun, 24 Oct 2021 17:16:04 +0300
Subject: dunst: shortcuts removed, everything broken
---
.config/dunst/dunstrc | 15 ++++++---------
.config/i3/config##h.lowe | 13 +++++++++++--
.config/i3/config##h.luchs | 13 +++++++++++--
.config/i3/config##h.maus | 19 ++++++++++++++-----
4 files changed, 42 insertions(+), 18 deletions(-)
diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc
index 731f8d9..d368349 100755
--- a/.config/dunst/dunstrc
+++ b/.config/dunst/dunstrc
@@ -1,19 +1,19 @@
[global]
monitor = 0
follow = keyboard
- width=248
- height=64
+ width=300
+ height=180
origin=top-right
offset=32x48
indicate_hidden = yes
shrink = no
transparency = 00
- separator_height = 2
+ separator_height = 20
padding = 16
horizontal_padding = 16
frame_width = 0
frame_color = "#79dac8"
- separator_color = frame
+ separator_color = "#00000000"
sort = yes
idle_threshold = 120
font = Iosevka Aile 9
@@ -28,13 +28,10 @@
hide_duplicate_count = false
show_indicators = true
icon_position = left
- max_icon_size = 64x64
icon_path = "/usr/share/icons/Tela-pink/16/actions:/usr/share/icons/Tela-pink/16/apps:/usr/share/icons/Tela-pink-dark/16/devices:/usr/share/icons/Tela-pink/16/emblems:/usr/share/icons/Tela-pink/16/mimetypes:/usr/share/icons/Tela-pink/16/panel:/usr/share/icons/Tela-pink-dark/16/places:/usr/share/icons/Tela-pink/16/status"
sticky_history = yes
history_length = 20
-
- corner_radius = 15
-
+ corner_radius = 0
dmenu = /usr/bin/rofi -dmenu
browser = /usr/bin/firefox
title = Dunst
@@ -57,7 +54,7 @@
[Spotify]
appname = "Spotify"
- format = "now playing\n%s\n%b"
+ format = "now playing\n🎤 %s\n🎶 %b"
set_transient = true
[ncmpcpp]
diff --git a/.config/i3/config##h.lowe b/.config/i3/config##h.lowe
index 0c517ea..ca32cf3 100644
--- a/.config/i3/config##h.lowe
+++ b/.config/i3/config##h.lowe
@@ -40,6 +40,17 @@ gaps inner 5
gaps outer 0
## bindings
+### dunstctl - dunst shortcuts have been deprecated
+# close notifications with mod+x
+bindcode $mod+53 exec --no-startup-id dunstctl close
+bindcode $mod+shift+53 exec --no-startup-id dunstctl close-all
+
+# give context menu with mod+o
+bindcode $mod+47 exec --no-startup-id dunstctl context
+
+# show history items with mod+0 (like the old times)
+bindcode $mod+19 exec --no-startup-id dunstctl history-pop
+
# done, {task,time}warrior control suite
bindcode $mod+42 exec --no-startup-id ~/.local/bin/done
@@ -147,7 +158,6 @@ bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $wssteam
-bindsym $mod+0 workspace $ws10
bindsym $mod+m workspace $wsmusic
bindcode $mod+49 workspace $wszotero
bindcode $mod+60 workspace $wsdesktop
@@ -163,7 +173,6 @@ bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $wssteam
-bindsym $mod+Shift+0 move container to workspace $ws10
bindsym $mod+Shift+m move container to workspace $wsmusic
bindcode $mod+Shift+49 move container to workspace $wszotero
bindcode $mod+Shift+60 move container to workspace $wsdesktop
diff --git a/.config/i3/config##h.luchs b/.config/i3/config##h.luchs
index 319844a..081a614 100644
--- a/.config/i3/config##h.luchs
+++ b/.config/i3/config##h.luchs
@@ -46,6 +46,17 @@ gaps outer 2
font pango:Iosevka 11
## bindings
+### dunstctl - dunst shortcuts have been deprecated
+# close notifications with mod+x
+bindcode $mod+53 exec --no-startup-id dunstctl close
+bindcode $mod+shift+53 exec --no-startup-id dunstctl close-all
+
+# give context menu with mod+o
+bindcode $mod+47 exec --no-startup-id dunstctl context
+
+# show history items with mod+0 (like the old times)
+bindcode $mod+19 exec --no-startup-id dunstctl history-pop
+
# done, {task,time}warrior control suite
bindcode $mod+42 exec --no-startup-id ~/.local/bin/done
@@ -169,7 +180,6 @@ bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
-bindsym $mod+0 workspace $ws10
bindcode $mod+49 workspace $wszotero
bindcode $mod+60 workspace $wsdesktop
bindcode $mod+21 workspace $wsbrowser
@@ -184,7 +194,6 @@ bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
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
bindcode $mod+Shift+49 move container to workspace $wszotero
bindcode $mod+Shift+60 move container to workspace $wsdesktop
bindcode $mod+Shift+21 move container to workspace $wsbrowser
diff --git a/.config/i3/config##h.maus b/.config/i3/config##h.maus
index 29830c1..9b2c518 100644
--- a/.config/i3/config##h.maus
+++ b/.config/i3/config##h.maus
@@ -39,7 +39,18 @@ exec --no-startup-id ~/.fehbg
font pango:Iosevka 11
## bindings
-# done, {task,time}warrior control suite
+### dunstctl - dunst shortcuts have been deprecated
+# close notifications with mod+x
+bindcode $mod+53 exec --no-startup-id dunstctl close
+bindcode $mod+shift+53 exec --no-startup-id dunstctl close-all
+
+# give context menu with mod+o
+bindcode $mod+47 exec --no-startup-id dunstctl context
+
+# show history items with mod+0 (like the old times)
+bindcode $mod+19 exec --no-startup-id dunstctl history-pop
+
+# done, {task,time}warrior control suite, mod+d
bindcode $mod+42 exec --no-startup-id ~/.local/bin/done
# type the contents of the clipboard with mod+p
@@ -69,10 +80,10 @@ bindsym XF86AudioPrev exec --no-startup-id playerctl previous
bindsym XF86AudioNext exec --no-startup-id playerctl next
bindsym XF86Tools exec --no-startup-id mpc toggle # for mpd/ncmpcpp
-# make the currently focused window a scratchpad
+# make the currently focused window a scratchpad, mod+shift+-
bindcode $mod+Shift+20 move scratchpad
-# show the first scratchpad window
+# show the first scratchpad window, mod+-
bindcode $mod+20 scratchpad show
# pause notifications for a while with mod+shift+y
@@ -159,7 +170,6 @@ bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $wssteam
-bindsym $mod+0 workspace $ws10
bindsym $mod+m workspace $wsmusic
bindcode $mod+49 workspace $wszotero
bindcode $mod+60 workspace $wsdesktop
@@ -175,7 +185,6 @@ bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $wssteam
-bindsym $mod+Shift+0 move container to workspace $ws10
bindsym $mod+Shift+m move container to workspace $wsmusic
bindcode $mod+Shift+49 move container to workspace $wszotero
bindcode $mod+Shift+60 move container to workspace $wsdesktop
--
cgit v1.2.3-70-g09d2
From ffd49c6201c3ba8bc3c19e7318740258eb736901 Mon Sep 17 00:00:00 2001
From: Yigit Sever
Date: Sun, 24 Oct 2021 17:16:31 +0300
Subject: nvim: add clangd to lsp
---
.config/nvim/lua/plugin_settings.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua
index 0ca647a..8994763 100644
--- a/.config/nvim/lua/plugin_settings.lua
+++ b/.config/nvim/lua/plugin_settings.lua
@@ -336,7 +336,7 @@ local on_attach = function(client, bufnr)
buf_set_keymap('n', 'f', 'lua vim.lsp.buf.formatting()', opts)
end
-local servers = { 'rust_analyzer', 'jedi_language_server', 'texlab' }
+local servers = { 'rust_analyzer', 'jedi_language_server', 'texlab', 'clangd' }
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup {
on_attach = on_attach,
--
cgit v1.2.3-70-g09d2
From 2aada03807e60e2fa255b065f1315c3699d603a5 Mon Sep 17 00:00:00 2001
From: Yigit Sever
Date: Sun, 24 Oct 2021 23:06:52 +0300
Subject: gitconfig: steal log aliases
https://thoughtbot.com/blog/dumpster-diving-through-dotfiles-better-git-logging
---
.gitconfig##h.lowe | 4 +++-
.gitconfig##h.luchs | 4 +++-
.gitconfig##h.maus | 4 +++-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/.gitconfig##h.lowe b/.gitconfig##h.lowe
index e66c268..b4dea18 100644
--- a/.gitconfig##h.lowe
+++ b/.gitconfig##h.lowe
@@ -12,10 +12,12 @@
ci = commit
st = status
br = branch
- hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
type = cat-file -t
dump = cat-file -p
adog = log --all --decorate --oneline --graph
+ hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
+ sl = log --oneline --decorate -20
+ sla = log --oneline --decorate --graph --all -20
[credential]
helper = cache --timeout=3600
[color]
diff --git a/.gitconfig##h.luchs b/.gitconfig##h.luchs
index bd7343f..8f2fb6a 100644
--- a/.gitconfig##h.luchs
+++ b/.gitconfig##h.luchs
@@ -12,10 +12,12 @@
ci = commit
st = status
br = branch
- hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
type = cat-file -t
dump = cat-file -p
adog = log --all --decorate --oneline --graph
+ hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
+ sl = log --oneline --decorate -20
+ sla = log --oneline --decorate --graph --all -20
[credential]
helper = cache --timeout=3600
[color]
diff --git a/.gitconfig##h.maus b/.gitconfig##h.maus
index 76c9a91..16b69f4 100644
--- a/.gitconfig##h.maus
+++ b/.gitconfig##h.maus
@@ -12,10 +12,12 @@
ci = commit
st = status
br = branch
- hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
type = cat-file -t
dump = cat-file -p
adog = log --all --decorate --oneline --graph
+ hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
+ sl = log --oneline --decorate -20
+ sla = log --oneline --decorate --graph --all -20
[credential]
helper = cache --timeout=3600
[color]
--
cgit v1.2.3-70-g09d2
From 1ac2a28d03390503e48a19ad1d9a64591138caf7 Mon Sep 17 00:00:00 2001
From: Yigit Sever
Date: Sun, 24 Oct 2021 23:08:38 +0300
Subject: gitconfig: steal branches alias
https://thoughtbot.com/blog/dumpster-diving-through-dotfiles-git-branches
---
.gitconfig##h.lowe | 1 +
.gitconfig##h.luchs | 1 +
.gitconfig##h.maus | 1 +
3 files changed, 3 insertions(+)
diff --git a/.gitconfig##h.lowe b/.gitconfig##h.lowe
index b4dea18..d0026b7 100644
--- a/.gitconfig##h.lowe
+++ b/.gitconfig##h.lowe
@@ -18,6 +18,7 @@
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
sl = log --oneline --decorate -20
sla = log --oneline --decorate --graph --all -20
+ branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
[credential]
helper = cache --timeout=3600
[color]
diff --git a/.gitconfig##h.luchs b/.gitconfig##h.luchs
index 8f2fb6a..5ad9aeb 100644
--- a/.gitconfig##h.luchs
+++ b/.gitconfig##h.luchs
@@ -18,6 +18,7 @@
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
sl = log --oneline --decorate -20
sla = log --oneline --decorate --graph --all -20
+ branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
[credential]
helper = cache --timeout=3600
[color]
diff --git a/.gitconfig##h.maus b/.gitconfig##h.maus
index 16b69f4..265ecb6 100644
--- a/.gitconfig##h.maus
+++ b/.gitconfig##h.maus
@@ -18,6 +18,7 @@
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
sl = log --oneline --decorate -20
sla = log --oneline --decorate --graph --all -20
+ branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
[credential]
helper = cache --timeout=3600
[color]
--
cgit v1.2.3-70-g09d2
From 3fad12478ae35265aac6496f61342471da06c4a9 Mon Sep 17 00:00:00 2001
From: Yigit Sever
Date: Mon, 25 Oct 2021 00:54:19 +0300
Subject: yadm: encrypt gitolite keys
---
.config/yadm/encrypt | 2 ++
.local/share/yadm/archive | Bin 2940 -> 3313 bytes
2 files changed, 2 insertions(+)
diff --git a/.config/yadm/encrypt b/.config/yadm/encrypt
index 0774b67..aaa502d 100644
--- a/.config/yadm/encrypt
+++ b/.config/yadm/encrypt
@@ -1,3 +1,5 @@
.ssh/aur
.ssh/aur.pub
.ssh/config
+.ssh/gitolite
+.ssh/gitolite.pub
diff --git a/.local/share/yadm/archive b/.local/share/yadm/archive
index b5ea7de..b68d190 100644
Binary files a/.local/share/yadm/archive and b/.local/share/yadm/archive differ
--
cgit v1.2.3-70-g09d2