activitywatch: add activitywatch

oh and also format autostart
This commit is contained in:
mequidis
2022-05-12 08:42:09 +03:00
parent ada1f41af7
commit c2c7e6936c
2 changed files with 60 additions and 56 deletions

View File

@ -46,98 +46,98 @@ screen_locker="i3lock -c 000000"
# #
# basics # basics
hc keybind $M-w close_and_remove hc keybind "$M-w" close_and_remove
hc keybind $M-e close hc keybind "$M-e" close
hc keybind $M-t reload hc keybind "$M-t" reload
hc keybind $M-q spawn sh $scripts/exitmenu hc keybind "$M-q" spawn sh $scripts/exitmenu
# focus # focus
hc keybind $M-h focus left hc keybind "$M-h" focus left
hc keybind $M-j focus down hc keybind "$M-j" focus down
hc keybind $M-k focus up hc keybind "$M-k" focus up
hc keybind $M-l focus right hc keybind "$M-l" focus right
# shift # shift
hc keybind $M-$S-h shift left hc keybind "$M-$S-h" shift left
hc keybind $M-$S-j shift down hc keybind "$M-$S-j" shift down
hc keybind $M-$S-k shift up hc keybind "$M-$S-k" shift up
hc keybind $M-$S-l shift right hc keybind "$M-$S-l" shift right
# split focused frame # split focused frame
hc keybind $M-y chain , split left 0.5 , focus left 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-u" chain , split bottom 0.5 , focus down
hc keybind $M-i chain , split top 0.5 , focus up 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-o" chain , split right 0.5 , focus right
# split root frame # split root frame
hc keybind $M-$S-y chain , split left 0.5 '' , focus left 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-u" chain , split bottom 0.5 '' , focus down
hc keybind $M-$S-i chain , split top 0.5 '' , focus up 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-o" chain , split right 0.5 '' , focus right
# frame splitting # frame splitting
hc keybind $M-p split explode hc keybind "$M-p" split explode
hc keybind $M-r remove hc keybind "$M-r" remove
# resize # resize
resizestep=0.04 resizestep=0.04
hc keybind $M-$C-h resize left $resizestep hc keybind "$M-$C-h" resize left $resizestep
hc keybind $M-$C-j resize down $resizestep hc keybind "$M-$C-j" resize down $resizestep
hc keybind $M-$C-k resize up $resizestep hc keybind "$M-$C-k" resize up $resizestep
hc keybind $M-$C-l resize right $resizestep hc keybind "$M-$C-l" resize right $resizestep
# cycle # cycle
hc keybind $M-n cycle +1 hc keybind "$M-n" cycle +1
hc keybind $M-m cycle_monitor hc keybind "$M-m" cycle_monitor
# cycle layouts # cycle layouts
hc keybind $M-Tab \ hc keybind "$M-Tab" \
or , and . compare tags.focus.curframe_wcount = 2 \ or , and . compare tags.focus.curframe_wcount = 2 \
. cycle_layout +1 vertical horizontal max vertical grid \ . cycle_layout +1 vertical horizontal max vertical grid \
, cycle_layout +1 , cycle_layout +1
# rotate and mirror # rotate and mirror
hc keybind $M-apostrophe mirror vertical hc keybind "$M-apostrophe" mirror vertical
hc keybind $M-semicolon mirror horizontal hc keybind "$M-semicolon" mirror horizontal
hc keybind $M-slash rotate hc keybind "$M-slash" rotate
# window attributes # window attributes
hc keybind $M-$C-e floating toggle hc keybind "$M-$C-e" floating toggle
hc keybind $M-$C-w fullscreen toggle hc keybind "$M-$C-w" fullscreen toggle
hc keybind $M-$C-q set_attr clients.focus.floating toggle hc keybind "$M-$C-q" set_attr clients.focus.floating toggle
# toggles # toggles
hc keybind $M-$S-w spawn sh $scripts/togglemaster hc keybind "$M-$S-w" spawn sh $scripts/togglemaster
# media keys # media keys
hc keybind XF86AudioMute spawn pulsemixer --toggle-mute hc keybind XF86AudioMute spawn pulsemixer --toggle-mute
hc keybind XF86AudioLowerVolume spawn pulsemixer --change-volume -5 hc keybind XF86AudioLowerVolume spawn pulsemixer --change-volume -5
hc keybind XF86AudioRaiseVolume spawn pulsemixer --change-volume +5 hc keybind XF86AudioRaiseVolume spawn pulsemixer --change-volume +5
hc keybind XF86MonBrightnessDown spawn light -U 5 hc keybind XF86MonBrightnessDown spawn light -U 5
hc keybind XF86MonBrightnessUp spawn light -A 5 hc keybind XF86MonBrightnessUp spawn light -A 5
# mouse # mouse
hc mouseunbind all hc mouseunbind all
hc mousebind $M-Button1 move hc mousebind "$M-Button1" move
hc mousebind $M-Button2 zoom hc mousebind "$M-Button2" zoom
hc mousebind $M-Button3 resize hc mousebind "$M-Button3" resize
# #
# application launchers # application launchers
# #
hc keybind $M-Return spawn $terminal hc keybind "$M-Return" spawn $terminal
hc keybind $M-space spawn $launcher hc keybind "$M-space" spawn $launcher
hc keybind $M-grave spawn flameshot gui hc keybind "$M-grave" spawn flameshot gui
hc keybind $M-1 spawn $file_manager hc keybind "$M-1" spawn $file_manager
hc keybind $M-2 spawn $browser hc keybind "$M-2" spawn $browser
hc keybind $M-3 spawn $calculator hc keybind "$M-3" spawn $calculator
hc keybind $M-4 spawn $music_player hc keybind "$M-4" spawn $music_player
hc keybind $M-5 spawn $calendar hc keybind "$M-5" spawn $calendar
hc keybind $M-6 spawn virt-manager hc keybind "$M-6" spawn virt-manager
hc keybind $M-7 spawn $feed_reader hc keybind "$M-7" spawn $feed_reader
hc keybind $M-0 spawn $screen_locker hc keybind "$M-0" spawn $screen_locker
# #
# tags # tags
@ -151,8 +151,8 @@ for i in "${!tag_names[@]}"; do
hc add "${tag_names[$i]}" hc add "${tag_names[$i]}"
key="${tag_keys[$i]}" key="${tag_keys[$i]}"
if ! [ -z "$key" ]; then if ! [ -z "$key" ]; then
hc keybind $M-$key use_index $i hc keybind "$M-$key" use_index $i
hc keybind $M-$S-$key move_index $i hc keybind "$M-$S-$key" move_index $i
fi fi
done done
@ -223,3 +223,6 @@ pidof mpd || mpd &
pidof flameshot || flameshot & pidof flameshot || flameshot &
pidof lxpolkit || lxpolkit & pidof lxpolkit || lxpolkit &
wal -R && ~/.fehbg wal -R && ~/.fehbg
pidof aw-server || aw-server
pidof aw-server-afk || aw-watcher-afk
pidof aw-watch-window || aw-watcher-window

View File

@ -1,3 +1,4 @@
activitywatch-bin
calcurse calcurse
colorpicker colorpicker
dunst dunst