diff --git a/config/Xresources/urxvt b/config/Xresources/urxvt index 93c9b65..a0e0124 100644 --- a/config/Xresources/urxvt +++ b/config/Xresources/urxvt @@ -37,7 +37,7 @@ URxvt.keysym.C-S-V: eval:paste_clipboard ! Extensions -URxvt.perl-ext-common: resize-font,bell-command,readline,selection,matcher +URxvt.perl-ext-common: resize-font,bell-command,readline,selection ! Changing font size on the fly (extension: resize-font, package: urxvt-resize-font-git) URxvt.keysym.C-KP_Subtract: resize-font:smaller @@ -55,7 +55,7 @@ urxvt*shading: 30 URxvt.bell-command: play -n synth sine C5 sine E4 remix 1-2 fade 0.1 0.2 0.1 &> /dev/null ! Open URL in browser (extension: matcher) -URxvt.url-launcher: o -URxvt.matcher.button: 1 -URxvt.matcher.rend.0: Uline Bold fg5 +! URxvt.url-launcher: o +! URxvt.matcher.button: 1 +! URxvt.matcher.rend.0: Uline Bold fg5 diff --git a/config/nvim/.netrwhist b/config/nvim/.netrwhist new file mode 100644 index 0000000..09daa7e --- /dev/null +++ b/config/nvim/.netrwhist @@ -0,0 +1,4 @@ +let g:netrw_dirhistmax =10 +let g:netrw_dirhist_cnt =2 +let g:netrw_dirhist_1='/etc/wpa_supplicant' +let g:netrw_dirhist_2='/home/geoffrey/.gdotfiles/config/task' diff --git a/config/scripts/rssVideos b/config/scripts/rssVideos index 610896d..5384c33 100755 --- a/config/scripts/rssVideos +++ b/config/scripts/rssVideos @@ -38,6 +38,8 @@ if __name__ == "__main__": env_var='RSS_VIDEOS_FEED', required=True) parser.add('--videos', help='Directory to store videos', env_var='RSS_VIDEOS_VIDEO_DIR', required=True) + parser.add('-n', '--dryrun', help='Do not download the videos', + action='store_const', const=True, default=False) # TODO This feature might require additional documentation and an on/off switc parser.add('--track', help='Directory where download videos are maked (so they are not downloaded twice)', env_var='RSS_VIDEOS_TRACK', required=False, default='.rssVideos') @@ -167,16 +169,17 @@ if __name__ == "__main__": os.chdir(args.videos) - # TODO Progressbar one day maybe? - # We have all the info we need to make a reliable one - ydl_opts = { - } - with youtube_dl.YoutubeDL(ydl_opts) as ydl: - for onlineFilename in videosToDownload: - infos = videosInfos[onlineFilename] + if not args.dryrun: + # TODO Progressbar one day maybe? + # We have all the info we need to make a reliable one + ydl_opts = { + } + with youtube_dl.YoutubeDL(ydl_opts) as ydl: + for onlineFilename in videosToDownload: + infos = videosInfos[onlineFilename] - # Really download - ydl.process_ie_result(infos, True, {}) + # Really download + ydl.process_ie_result(infos, True, {}) - markTracked(onlineFilename) + markTracked(onlineFilename) diff --git a/config/systemd/user/tasksync.service b/config/systemd/user/tasksync.service index 1128530..82db572 100644 --- a/config/systemd/user/tasksync.service +++ b/config/systemd/user/tasksync.service @@ -4,3 +4,4 @@ Description=Taskwarrior synchronisation [Service] Type=oneshot ExecStart=/usr/bin/task sync +EnvironmentFile=-/home/geoffrey/config/task/env