From ebd402f1978594f1ed8ea59c9822038f51309bf3 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Wed, 21 Sep 2022 23:10:32 +0200 Subject: [PATCH] add virus scan popup binding --- .config/alacritty/popup.yml | 57 +++++++++++++++++++++++++++++++++++++ .config/i3/config | 6 +++- 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100755 .config/alacritty/popup.yml diff --git a/.config/alacritty/popup.yml b/.config/alacritty/popup.yml new file mode 100755 index 0000000..bcdbf20 --- /dev/null +++ b/.config/alacritty/popup.yml @@ -0,0 +1,57 @@ +env: + TERM: "xterm-256color" + +shell: + program: /usr/bin/bash + +# Font configuration (changes require restart) +font: + # The size to use. + size: 8 + normal: + family: Comic Mono + style: Regular + + # The bold font face + bold: + family: Comic Mono + style: Bold + + # The italic font face + italic: + family: Comic Mono + +window: + opacity: 0.5 + dimensions: + columns: 75 + lines: 20 + +# Colors (Tomorrow Night Bright) +colors: + # Default colors + primary: + background: '0x770000' + foreground: '0xeaeaea' + + # Normal colors + normal: + black: '0x000000' + red: '0xd54e53' + green: '0xb9ca4a' + yellow: '0xe6c547' + blue: '0x7aa6da' + magenta: '0xc397d8' + cyan: '0x70c0ba' + white: '0x424242' + + # Bright colors + bright: + black: '0x666666' + red: '0xff3334' + green: '0x9ec400' + yellow: '0xe7c547' + blue: '0x7aa6da' + magenta: '0xb77ee0' + cyan: '0x54ced6' + white: '0x2a2a2a' diff --git a/.config/i3/config b/.config/i3/config index 8943d0a..631d514 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -228,7 +228,7 @@ default_border pixel # Lock screen bindsym $mod+Ctrl+l exec --no-startup-id "sh ~/.config/i3/lock.sh # && xset dpms force off" -bindsym $mod+Shift+v exec --no-startup-id "sh ~/.config/i3/lock.sh && echo mem > /sys/power/state" +# bindsym $mod+Shift+v exec --no-startup-id "sh ~/.config/i3/lock.sh && echo mem > /sys/power/state" # Screen shot bindsym Print exec --no-startup-id "spectacle -r" @@ -259,6 +259,10 @@ bindsym $mod+w exec --no-startup-id "feh --no-fehbg --bg-fill --randomize ~/.con # Dolphin #bindsym $mod+Tab exec --no-startup-id dolphin +# Run a virus scan on the Downloads folder +bindsym $mod+Shift+v exec --no-startup-id alacritty --hold --config-file ~/.config/alacritty/popup.yml --class floating -e clamscan --recursive ~/Downloads + +for_window [instance="floating"] floating enabled for_window [class="kronometer"] floating enable for_window [title="^Android Emulator - .*"] floating enable