Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UserConfig
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
UserConfig
Commits
0afea309
Commit
0afea309
authored
4 years ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
MAIL Daemon
parent
e1b70089
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
i3/config
+3
-1
3 additions, 1 deletion
i3/config
mail/init.sh
+2
-1
2 additions, 1 deletion
mail/init.sh
mail/m-daemon.sh
+46
-0
46 additions, 0 deletions
mail/m-daemon.sh
with
51 additions
and
2 deletions
i3/config
+
3
−
1
View file @
0afea309
...
...
@@ -346,7 +346,7 @@ bindcode 123 exec "echo $(( $(cat .config/micloop/volume) + 10000 )) > .config/
#bindsym Control+Print exec gnome-screenshot -i
#bindsym $mod+Print exec printscreengimp
bindsym Print exec "maim -suo | xclip -selection clipboard -t image/png"
bindsym Print exec "maim -suo |
tee ~/screenshot.png |
xclip -selection clipboard -t image/png"
bindsym Shift+Print exec "maim -suo > ~/screenshot.png ; convert ~/screenshot.png $(zenity --file-selection --save --file-filter='Picture | *.png *.jpg *.gif *.bmp' --confirm-overwrite)"
bindsym Ctrl+Shift+Print exec "maim -uo | convert png:- `zenity --file-selection --save --file-filter='Picture | *.png *.jpg *.gif *.bmp' --confirm-overwrite`"
bindsym Ctrl+Print exec " maim -uo | xclip -selection clipboard -t image/png"
...
...
@@ -356,6 +356,7 @@ exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agen
for_window [class=".*"] border pixel 1
for_window [class="zoom"] move container to workspace ZOOM
for_window [title="MAIL"] move container to workspace MAIL
for_window [title="Jitsi Meet"] floating enable
...
...
@@ -380,6 +381,7 @@ bindsym $mod+Shift+o exec --no-startup-id killall -3 mate-session; exec --no-sta
exec "setxkbmap us,cz -variant ,ucw -option grp:caps_switch"
exec --no-startup-id "sleep 2; osdd-run & sleep 1;osdc --color=red START"
exec --no-startup-id "sleep 5; terminal -e m-daemon"
bindcode 94 exec "osdc --duration=1 --log=1 \\"\\""
bindcode $mod+51 exec "osdc --duration=1 --log=1 \\"\\""
...
...
This diff is collapsed.
Click to expand it.
mail/init.sh
+
2
−
1
View file @
0afea309
...
...
@@ -12,6 +12,7 @@ sudo systemctl enable offlineimap-jiri
mkdir
-p
~/.config/neomutt
ln
-sr
neomuttrc ~/.config/neomutt/
ln
-sr
m ~/bin
ln
-sr
m-daemon ~/bin
ln
-sr
~/Maildir-no-dot/INBOX ~/Maildir
...
...
@@ -21,7 +22,7 @@ ln -sr ~/Maildir-no-dot/INBOX ~/Maildir
do
if
[[
"
$i
"
!=
"INBOX"
]]
then
ln
-sr
$i
INBOX/
.
$i
ln
-sr
$i
INBOX/
fi
done
...
...
This diff is collapsed.
Click to expand it.
mail/m-daemon.sh
0 → 100755
+
46
−
0
View file @
0afea309
#!/bin/bash
kilrek
()
{
pgrep
-P
$1
|
while
read
p
;
do
echo
$1
$2
to
$p
;
if
[[
"
$p
"
!=
"
$2
"
]]
then
kilrek
$p
$2
echo
$p
;
kill
$p
;
fi
done
}
whileok
()
{
while
true
do
sleep
60
read
-ra
x < ~/.cm
delay
=
$((
$(
date
+%s
)
-
${
x
[0]
}
))
if
((
$delay
>
120
))
then
(
echo
KILL
pidwok
=
$BASHPID
echo
pidwok
$pidwok
kilrek
$1
$pidwok
return
;
)
fi
done
}
pid
=
$BASHPID
while
$run
do
whileok
$pid
&
echo
-ne
"
\0
33]0;MAIL
\0
07"
osdc
--log
=
2
--color
=
red
"TRY START MAIL"
m
sleep
2
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment