From c2c7e6936cfd1230fccaeb2ff098ef91796420e8 Mon Sep 17 00:00:00 2001 From: mequidis Date: Thu, 12 May 2022 08:42:09 +0300 Subject: [PATCH] activitywatch: add activitywatch oh and also format autostart --- .config/herbstluftwm/autostart | 115 +++++++++++++++++---------------- .config/mequidots/packagelist | 1 + 2 files changed, 60 insertions(+), 56 deletions(-) diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart index de65dda..887ec7f 100755 --- a/.config/herbstluftwm/autostart +++ b/.config/herbstluftwm/autostart @@ -46,98 +46,98 @@ screen_locker="i3lock -c 000000" # # basics -hc keybind $M-w close_and_remove -hc keybind $M-e close -hc keybind $M-t reload -hc keybind $M-q spawn sh $scripts/exitmenu +hc keybind "$M-w" close_and_remove +hc keybind "$M-e" close +hc keybind "$M-t" reload +hc keybind "$M-q" spawn sh $scripts/exitmenu # focus -hc keybind $M-h focus left -hc keybind $M-j focus down -hc keybind $M-k focus up -hc keybind $M-l focus right +hc keybind "$M-h" focus left +hc keybind "$M-j" focus down +hc keybind "$M-k" focus up +hc keybind "$M-l" focus right # shift -hc keybind $M-$S-h shift left -hc keybind $M-$S-j shift down -hc keybind $M-$S-k shift up -hc keybind $M-$S-l shift right +hc keybind "$M-$S-h" shift left +hc keybind "$M-$S-j" shift down +hc keybind "$M-$S-k" shift up +hc keybind "$M-$S-l" shift right # split focused frame -hc keybind $M-y chain , split left 0.5 , focus left -hc keybind $M-u chain , split bottom 0.5 , focus down -hc keybind $M-i chain , split top 0.5 , focus up -hc keybind $M-o chain , split right 0.5 , focus right +hc keybind "$M-y" chain , split left 0.5 , focus left +hc keybind "$M-u" chain , split bottom 0.5 , focus down +hc keybind "$M-i" chain , split top 0.5 , focus up +hc keybind "$M-o" chain , split right 0.5 , focus right # split root frame -hc keybind $M-$S-y chain , split left 0.5 '' , focus left -hc keybind $M-$S-u chain , split bottom 0.5 '' , focus down -hc keybind $M-$S-i chain , split top 0.5 '' , focus up -hc keybind $M-$S-o chain , split right 0.5 '' , focus right +hc keybind "$M-$S-y" chain , split left 0.5 '' , focus left +hc keybind "$M-$S-u" chain , split bottom 0.5 '' , focus down +hc keybind "$M-$S-i" chain , split top 0.5 '' , focus up +hc keybind "$M-$S-o" chain , split right 0.5 '' , focus right # frame splitting -hc keybind $M-p split explode -hc keybind $M-r remove +hc keybind "$M-p" split explode +hc keybind "$M-r" remove # resize resizestep=0.04 -hc keybind $M-$C-h resize left $resizestep -hc keybind $M-$C-j resize down $resizestep -hc keybind $M-$C-k resize up $resizestep -hc keybind $M-$C-l resize right $resizestep +hc keybind "$M-$C-h" resize left $resizestep +hc keybind "$M-$C-j" resize down $resizestep +hc keybind "$M-$C-k" resize up $resizestep +hc keybind "$M-$C-l" resize right $resizestep # cycle -hc keybind $M-n cycle +1 -hc keybind $M-m cycle_monitor +hc keybind "$M-n" cycle +1 +hc keybind "$M-m" cycle_monitor # cycle layouts -hc keybind $M-Tab \ +hc keybind "$M-Tab" \ or , and . compare tags.focus.curframe_wcount = 2 \ . cycle_layout +1 vertical horizontal max vertical grid \ , cycle_layout +1 # rotate and mirror -hc keybind $M-apostrophe mirror vertical -hc keybind $M-semicolon mirror horizontal -hc keybind $M-slash rotate +hc keybind "$M-apostrophe" mirror vertical +hc keybind "$M-semicolon" mirror horizontal +hc keybind "$M-slash" rotate # window attributes -hc keybind $M-$C-e floating toggle -hc keybind $M-$C-w fullscreen toggle -hc keybind $M-$C-q set_attr clients.focus.floating toggle +hc keybind "$M-$C-e" floating toggle +hc keybind "$M-$C-w" fullscreen toggle +hc keybind "$M-$C-q" set_attr clients.focus.floating toggle # toggles -hc keybind $M-$S-w spawn sh $scripts/togglemaster +hc keybind "$M-$S-w" spawn sh $scripts/togglemaster # media keys -hc keybind XF86AudioMute spawn pulsemixer --toggle-mute -hc keybind XF86AudioLowerVolume spawn pulsemixer --change-volume -5 -hc keybind XF86AudioRaiseVolume spawn pulsemixer --change-volume +5 +hc keybind XF86AudioMute spawn pulsemixer --toggle-mute +hc keybind XF86AudioLowerVolume spawn pulsemixer --change-volume -5 +hc keybind XF86AudioRaiseVolume spawn pulsemixer --change-volume +5 hc keybind XF86MonBrightnessDown spawn light -U 5 -hc keybind XF86MonBrightnessUp spawn light -A 5 +hc keybind XF86MonBrightnessUp spawn light -A 5 # mouse hc mouseunbind all -hc mousebind $M-Button1 move -hc mousebind $M-Button2 zoom -hc mousebind $M-Button3 resize +hc mousebind "$M-Button1" move +hc mousebind "$M-Button2" zoom +hc mousebind "$M-Button3" resize # # application launchers # -hc keybind $M-Return spawn $terminal -hc keybind $M-space spawn $launcher +hc keybind "$M-Return" spawn $terminal +hc keybind "$M-space" spawn $launcher -hc keybind $M-grave spawn flameshot gui -hc keybind $M-1 spawn $file_manager -hc keybind $M-2 spawn $browser -hc keybind $M-3 spawn $calculator -hc keybind $M-4 spawn $music_player -hc keybind $M-5 spawn $calendar -hc keybind $M-6 spawn virt-manager -hc keybind $M-7 spawn $feed_reader -hc keybind $M-0 spawn $screen_locker +hc keybind "$M-grave" spawn flameshot gui +hc keybind "$M-1" spawn $file_manager +hc keybind "$M-2" spawn $browser +hc keybind "$M-3" spawn $calculator +hc keybind "$M-4" spawn $music_player +hc keybind "$M-5" spawn $calendar +hc keybind "$M-6" spawn virt-manager +hc keybind "$M-7" spawn $feed_reader +hc keybind "$M-0" spawn $screen_locker # # tags @@ -151,8 +151,8 @@ for i in "${!tag_names[@]}"; do hc add "${tag_names[$i]}" key="${tag_keys[$i]}" if ! [ -z "$key" ]; then - hc keybind $M-$key use_index $i - hc keybind $M-$S-$key move_index $i + hc keybind "$M-$key" use_index $i + hc keybind "$M-$S-$key" move_index $i fi done @@ -223,3 +223,6 @@ pidof mpd || mpd & pidof flameshot || flameshot & pidof lxpolkit || lxpolkit & wal -R && ~/.fehbg +pidof aw-server || aw-server +pidof aw-server-afk || aw-watcher-afk +pidof aw-watch-window || aw-watcher-window diff --git a/.config/mequidots/packagelist b/.config/mequidots/packagelist index 2f15b9c..29687de 100644 --- a/.config/mequidots/packagelist +++ b/.config/mequidots/packagelist @@ -1,3 +1,4 @@ +activitywatch-bin calcurse colorpicker dunst