diff options
author | joe <rbo@gmx.us> | 2025-09-30 10:01:59 +0200 |
---|---|---|
committer | joe <rbo@gmx.us> | 2025-09-30 10:01:59 +0200 |
commit | f14cac73496a00efe7901ff528569c7847f5aa4b (patch) | |
tree | 782f1248131140df9ffc83e2b15e13426c0a2d85 | |
parent | up (diff) | |
download | dotfiles-bsd-f14cac73496a00efe7901ff528569c7847f5aa4b.tar.gz dotfiles-bsd-f14cac73496a00efe7901ff528569c7847f5aa4b.tar.bz2 dotfiles-bsd-f14cac73496a00efe7901ff528569c7847f5aa4b.tar.xz dotfiles-bsd-f14cac73496a00efe7901ff528569c7847f5aa4b.tar.zst dotfiles-bsd-f14cac73496a00efe7901ff528569c7847f5aa4b.zip |
herbe
-rw-r--r-- | .config/nvim/lua/config/lazy.lua | 2 | ||||
-rwxr-xr-x | .local/bin/setwp | 32 |
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; } |