summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/lua/config/lazy.lua2
-rwxr-xr-x.local/bin/setwp32
2 files changed, 3 insertions, 31 deletions
diff --git a/.config/nvim/lua/config/lazy.lua b/.config/nvim/lua/config/lazy.lua
index e1b5533..4a54c04 100644
--- a/.config/nvim/lua/config/lazy.lua
+++ b/.config/nvim/lua/config/lazy.lua
@@ -83,7 +83,7 @@ require('lazy').setup({
default_overlength = 80,
grace_length = 1,
highlight_to_eol = true,
- disable_ft = { 'qf', 'help', 'man', 'checkhealth', 'lazy', 'packer', 'NvimTree', 'Telescope', 'WhichKey', 'text', 'csv', 'lua', 'gosum', 'sh', 'make', '' }
+ disable_ft = { 'qf', 'help', 'man', 'checkhealth', 'lazy', 'packer', 'NvimTree', 'Telescope', 'WhichKey', 'text', 'csv', 'lua', 'gosum', 'sh', 'make', 'crontab', '' }
}
end
},
diff --git a/.local/bin/setwp b/.local/bin/setwp
index 85041ec..02241bd 100755
--- a/.local/bin/setwp
+++ b/.local/bin/setwp
@@ -72,34 +72,6 @@ sub set_wp
return 0;
}
-sub notify
-{
- system(
- 'notify-send',
- '-u',
- 'low',
- '-t',
- '2000',
- 'setwp',
- ' wp set'
- );
- return;
-}
-
-sub notify_error
-{
- system(
- 'notify-send',
- '-u',
- 'critical',
- '-t',
- '4000',
- 'setwp',
- ' Wallpaper does not exist or is not a valid file'
- );
- return;
-}
-
sub main
{
my $wp;
@@ -117,8 +89,8 @@ sub main
$ret = set_wp($wp);
}
if (@ARGV == 0 || (@ARGV != 0 && $ARGV[0] ne "-nw")) {
- notify() if ($ret == 0);
- notify_error() if ($ret != 0);
+ exec('herbe', ' wp set') if ($ret == 0);
+ exec('herbe', ' wp is not a valid file') if ($ret != 0);
}
return;
}