summaryrefslogtreecommitdiffstats
path: root/.config/bspwm/bspwmrc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-19 15:11:07 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-19 15:11:07 +0200
commitd645bed84cc52881d8bd6ede1fa7983805b9493d (patch)
tree25f2eb728ad4ee42329c4eec51743d1ea3e88582 /.config/bspwm/bspwmrc
parentUpdate (diff)
downloaddotfiles-bsd-d645bed84cc52881d8bd6ede1fa7983805b9493d.tar.gz
dotfiles-bsd-d645bed84cc52881d8bd6ede1fa7983805b9493d.tar.bz2
dotfiles-bsd-d645bed84cc52881d8bd6ede1fa7983805b9493d.tar.xz
dotfiles-bsd-d645bed84cc52881d8bd6ede1fa7983805b9493d.tar.zst
dotfiles-bsd-d645bed84cc52881d8bd6ede1fa7983805b9493d.zip
Mutt notifications update
Diffstat (limited to '.config/bspwm/bspwmrc')
-rwxr-xr-x.config/bspwm/bspwmrc23
1 files changed, 16 insertions, 7 deletions
diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc
index e208132..84b03fb 100755
--- a/.config/bspwm/bspwmrc
+++ b/.config/bspwm/bspwmrc
@@ -36,7 +36,8 @@ use constant {
XSETROOT_PATH => '/usr/local/bin/xsetroot',
XINPUT_PATH => '/usr/local/bin/xinput',
SETWP_PATH => '/usr/home/jozan/.local/bin/setwp',
- BSPSWALLOW_PATH => '/usr/home/jozan/.local/bin/bspswallow'
+ BSPSWALLOW_PATH => '/usr/home/jozan/.local/bin/bspswallow',
+ NEOMUTT_PATH => '/usr/local/bin/neomutt'
};
use constant {
BSP_BORDER_WIDTH => 1,
@@ -138,9 +139,9 @@ sub bspc_rules
system(BSPC_PATH, 'rule', '-a', 'Wine', 'desktop=04', 'state=floating');
system(BSPC_PATH, 'rule', '-a', 'Dunst', 'layer=above');
system(BSPC_PATH, 'rule', '-a', 'Zathura', 'state=tiled');
- system(BSPC_PATH, 'rule', '-a', 'qTox', 'desktop=11');
+ system(BSPC_PATH, 'rule', '-a', 'qTox', 'desktop=10');
system(BSPC_PATH, 'rule', '-a', 'DergodsRealmII', 'state=floating');
- system(BSPC_PATH, 'rule', '-a', 'obs', 'desktop=11', 'follow=true');
+ system(BSPC_PATH, 'rule', '-a', 'obs', 'desktop=10', 'follow=true');
return;
}
@@ -307,21 +308,29 @@ sub run_terms
else {
fg_on_one_screen();
}
- system(BSPC_PATH, 'desktop', '-f', '01');
return;
}
sub run_fg_programs
{
my ($screens) = @_;
- my $pid;
+ my @pid;
run_espeak();
run_terms($screens);
- $pid = fork();
- if (not $pid) {
+ system(BSPC_PATH, 'desktop', '-f', '11');
+ $pid[0] = fork();
+ if (not $pid[0]) {
+ exec(ALACRITTY_PATH, '-e', NEOMUTT_PATH);
+ }
+ Time::HiRes::sleep(SLEEP_TIME);
+ system(BSPC_PATH, 'desktop', '-f', '01');
+ $pid[0] = fork();
+ if (not $pid[0]) {
exec(ALACRITTY_PATH, '-e', NEOVIM_PATH);
}
+ Time::HiRes::sleep(SLEEP_TIME);
+ system(BSPC_PATH, 'desktop', '-f', '12');
return;
}