From e0b20ae403486e45a2a0ce60e3f167bb6393292b Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sun, 20 Nov 2022 11:48:35 +0000 Subject: Fix services, desktop and bspwm --- bspwm/.config/bspwm/bspwmrc | 16 +++++++++++++ bspwm/.config/bspwmrc/bspwmrc | 16 ------------- .../.local/share/applications/emacs-mail.desktop | 5 ++++ desktop/.local/share/applications/emacs.desktop | 28 ++++++++++++++++++++++ desktop/emacs-mail.desktop | 5 ---- desktop/emacs.desktop | 28 ---------------------- services/.config/systemd/user/clipboard.service | 9 +++++++ services/.config/systemd/user/mailnotify.service | 9 +++++++ services/.config/systemd/user/mbsync.service | 7 ++++++ services/.config/systemd/user/mbsync.timer | 10 ++++++++ services/clipboard.service | 9 ------- services/mailnotify.service | 9 ------- services/mbsync.service | 7 ------ services/mbsync.timer | 10 -------- 14 files changed, 84 insertions(+), 84 deletions(-) create mode 100755 bspwm/.config/bspwm/bspwmrc delete mode 100755 bspwm/.config/bspwmrc/bspwmrc create mode 100644 desktop/.local/share/applications/emacs-mail.desktop create mode 100755 desktop/.local/share/applications/emacs.desktop delete mode 100644 desktop/emacs-mail.desktop delete mode 100755 desktop/emacs.desktop create mode 100644 services/.config/systemd/user/clipboard.service create mode 100644 services/.config/systemd/user/mailnotify.service create mode 100644 services/.config/systemd/user/mbsync.service create mode 100644 services/.config/systemd/user/mbsync.timer delete mode 100644 services/clipboard.service delete mode 100644 services/mailnotify.service delete mode 100644 services/mbsync.service delete mode 100644 services/mbsync.timer diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc new file mode 100755 index 0000000..d27a070 --- /dev/null +++ b/bspwm/.config/bspwm/bspwmrc @@ -0,0 +1,16 @@ +#!/bin/sh + +bspc monitor DP-1 -d term web code music +bspc monitor DP-2 -d 5 6 7 +bspc monitor DVI-1-0 -d 8 9 + +bspc config border_width 0 +bspc config window_gap 5 + +bspc config split_ratio 0.52 +bspc config borderless_monocle true +bspc config gapless_monocle true + +bspc rule -a Emacs state=tiled + +$HOME/.config/polybar/launch.sh diff --git a/bspwm/.config/bspwmrc/bspwmrc b/bspwm/.config/bspwmrc/bspwmrc deleted file mode 100755 index d27a070..0000000 --- a/bspwm/.config/bspwmrc/bspwmrc +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -bspc monitor DP-1 -d term web code music -bspc monitor DP-2 -d 5 6 7 -bspc monitor DVI-1-0 -d 8 9 - -bspc config border_width 0 -bspc config window_gap 5 - -bspc config split_ratio 0.52 -bspc config borderless_monocle true -bspc config gapless_monocle true - -bspc rule -a Emacs state=tiled - -$HOME/.config/polybar/launch.sh diff --git a/desktop/.local/share/applications/emacs-mail.desktop b/desktop/.local/share/applications/emacs-mail.desktop new file mode 100644 index 0000000..0739de1 --- /dev/null +++ b/desktop/.local/share/applications/emacs-mail.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Type=Application +Name=Emacs Email +Exec=emacsclient -c --eval "(browse-url-mail \"%f\")" +Icon=/home/yannherklotz/Images/emacs.icon diff --git a/desktop/.local/share/applications/emacs.desktop b/desktop/.local/share/applications/emacs.desktop new file mode 100755 index 0000000..95df61e --- /dev/null +++ b/desktop/.local/share/applications/emacs.desktop @@ -0,0 +1,28 @@ +[Desktop Entry] + +# The type as listed above +Type=Application + +# The version of the desktop entry specification to which this file complies +Version=1.0 + +# The name of the application +Name=Emacs + +# A comment which can/will be used as a tooltip +Comment=Flash card based learning tool + +# The path to the folder in which the executable is run +Path=/home/yannherklotz + +# The executable of the application, possibly with arguments. +Exec=/usr/bin/emacsclient -c -a '/usr/bin/emacs' + +# The name of the icon that will be used to display this entry +Icon=/home/yannherklotz/Images/emacs.icon + +# Describes whether this application needs to be run in a terminal or not +Terminal=false + +# Describes the categories in which this entry should be shown +Categories=Languages;Editor;Text; diff --git a/desktop/emacs-mail.desktop b/desktop/emacs-mail.desktop deleted file mode 100644 index 0739de1..0000000 --- a/desktop/emacs-mail.desktop +++ /dev/null @@ -1,5 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Emacs Email -Exec=emacsclient -c --eval "(browse-url-mail \"%f\")" -Icon=/home/yannherklotz/Images/emacs.icon diff --git a/desktop/emacs.desktop b/desktop/emacs.desktop deleted file mode 100755 index 95df61e..0000000 --- a/desktop/emacs.desktop +++ /dev/null @@ -1,28 +0,0 @@ -[Desktop Entry] - -# The type as listed above -Type=Application - -# The version of the desktop entry specification to which this file complies -Version=1.0 - -# The name of the application -Name=Emacs - -# A comment which can/will be used as a tooltip -Comment=Flash card based learning tool - -# The path to the folder in which the executable is run -Path=/home/yannherklotz - -# The executable of the application, possibly with arguments. -Exec=/usr/bin/emacsclient -c -a '/usr/bin/emacs' - -# The name of the icon that will be used to display this entry -Icon=/home/yannherklotz/Images/emacs.icon - -# Describes whether this application needs to be run in a terminal or not -Terminal=false - -# Describes the categories in which this entry should be shown -Categories=Languages;Editor;Text; diff --git a/services/.config/systemd/user/clipboard.service b/services/.config/systemd/user/clipboard.service new file mode 100644 index 0000000..b34df49 --- /dev/null +++ b/services/.config/systemd/user/clipboard.service @@ -0,0 +1,9 @@ +[Unit] +Description=Clipboard management through Syncthing. + +[Service] +Type=simple +ExecStart=/home/ymherklotz/.local/bin/clipboard.sh + +[Install] +WantedBy=default.target diff --git a/services/.config/systemd/user/mailnotify.service b/services/.config/systemd/user/mailnotify.service new file mode 100644 index 0000000..cf0b39f --- /dev/null +++ b/services/.config/systemd/user/mailnotify.service @@ -0,0 +1,9 @@ +[Unit] +Description=Mailbox notification service + +[Service] +Type=simple +ExecStart=/home/ymherklotz/.local/bin/mailnotify.sh + +[Install] +WantedBy=default.target diff --git a/services/.config/systemd/user/mbsync.service b/services/.config/systemd/user/mbsync.service new file mode 100644 index 0000000..c5047ec --- /dev/null +++ b/services/.config/systemd/user/mbsync.service @@ -0,0 +1,7 @@ +[Unit] +Description=Mailbox synchronization service +After=network.target network-online.target dbus.socket + +[Service] +Type=oneshot +ExecStart=/home/ymherklotz/.local/bin/mail.sh diff --git a/services/.config/systemd/user/mbsync.timer b/services/.config/systemd/user/mbsync.timer new file mode 100644 index 0000000..bd6ba12 --- /dev/null +++ b/services/.config/systemd/user/mbsync.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Mailbox synchronization timer + +[Timer] +OnBootSec=2m +OnUnitActiveSec=2m +Unit=mbsync.service + +[Install] +WantedBy=timers.target diff --git a/services/clipboard.service b/services/clipboard.service deleted file mode 100644 index b34df49..0000000 --- a/services/clipboard.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Clipboard management through Syncthing. - -[Service] -Type=simple -ExecStart=/home/ymherklotz/.local/bin/clipboard.sh - -[Install] -WantedBy=default.target diff --git a/services/mailnotify.service b/services/mailnotify.service deleted file mode 100644 index cf0b39f..0000000 --- a/services/mailnotify.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Mailbox notification service - -[Service] -Type=simple -ExecStart=/home/ymherklotz/.local/bin/mailnotify.sh - -[Install] -WantedBy=default.target diff --git a/services/mbsync.service b/services/mbsync.service deleted file mode 100644 index c5047ec..0000000 --- a/services/mbsync.service +++ /dev/null @@ -1,7 +0,0 @@ -[Unit] -Description=Mailbox synchronization service -After=network.target network-online.target dbus.socket - -[Service] -Type=oneshot -ExecStart=/home/ymherklotz/.local/bin/mail.sh diff --git a/services/mbsync.timer b/services/mbsync.timer deleted file mode 100644 index bd6ba12..0000000 --- a/services/mbsync.timer +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Mailbox synchronization timer - -[Timer] -OnBootSec=2m -OnUnitActiveSec=2m -Unit=mbsync.service - -[Install] -WantedBy=timers.target -- cgit