This commit is contained in:
ayham 2021-08-07 19:00:29 +03:00
parent 3bf18d3429
commit 749ed8988f
Signed by: ayham
GPG Key ID: EAB7F5A9DF503678
12 changed files with 232 additions and 300 deletions

View File

@ -5,20 +5,18 @@ exec xrdb ~/.cache/wal/colors.Xresources &
exec slstatus &
exec picom -CG --config ~/.config/picom.conf &
exec xrandr --auto --output HDMI1 --mode 1024x768 --right-of eDP1 &
#exec flameshot &
#exec greenclip daemon &
#exec /usr/lib/kdeconnectd &
#exec dunst
exec setxkbmap -model -layout us,us -variant ,workman -option grp:alt_shift_toggle &
sleep 0.5s
exec xmodmap ~/.config/Xmodmap &
exec mpd &
source ~/.config/env &
exec xss-lock -- /usr/bin/slock &
exec xset s 300 5 &
exec xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock &
exec keynav &
exec light -S 100 &
umask 002 &
eval $(keychain --eval --quiet id_ed25519)
eval $(keychain --absolute --dir "$XDG_RUNTIME_DIR"/keychain --eval --quiet id_ed25519)
exec dstartup &
exec xephyr-helper &
no-hdmi-port.sh && with-hdmi-port.sh &
exec xhost +si:localuser:"$USER" &
exec unclutter &

View File

@ -311,7 +311,7 @@ colors:
#
# Window opacity as a floating point number from `0.0` to `1.0`.
# The value `0.0` is completely transparent and `1.0` is opaque.
background_opacity: 0.70
background_opacity: 0.60
#selection:
#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"

View File

@ -13,7 +13,6 @@ export TERMINAL="alacritty"
export BROWSER="surf-open"
export PATH="$XDG_DATA_HOME/gem/bin:$PATH"
export PATH="/usr/games/:$PATH"
export PATH="$XDG_BIN_HOME:$PATH"
export GPG_TTY=$(tty)
@ -23,6 +22,8 @@ export TODOTXT_DEFAULT_ACTION=ls
export TODOTXT_SORT_COMMAND='env LC_COLLATE=C sort -k 2,2 -k 1,1n'
# ~/ clean-up
export MPD_HOST="$XDG_RUNTIME_DIR/mpd_socket"
export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker
export SSH_ASKPASS=ssh-askpass
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0"

View File

@ -21,6 +21,9 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCjSEJkpGbcZhvo0lr-44X_w tec
https://www.youtube.com/feeds/videos.xml?channel_id=UCgXdyySqz7qH-lDiVG-7KwA randy-the-sequel
https://www.youtube.com/feeds/videos.xml?channel_id=UCUmLRMERmJrmUtgnbFfknAg randy
https://www.youtube.com/feeds/videos.xml?channel_id=UCAiiOTio8Yu69c3XnR7nQBQ system-crafters
https://www.youtube.com/feeds/videos.xml?channel_id=UCCuoqzrsHlwv1YyPKLuMDUQ jonathan-blow
https://www.youtube.com/feeds/videos.xml?channel_id=UC6CjacQhqr-n1LnbYVZ0xKQ jonathan-blow-sream-archive
https://www.youtube.com/feeds/videos.xml?channel_id=UCCuoqzrsHlwv1YyPKLuMDUQ hex-dsl
"-----------------"
"---- Blogs"
@ -39,6 +42,7 @@ https://anchor.fm/s/149fd51c/podcast/rss TechOverTea
https://www.youtube.com/feeds/videos.xml?channel_id=UCLwNTXWEjVd2qIHLcXxQWxA timcast right-center commentary
https://www.youtube.com/feeds/videos.xml?channel_id=UCMMCy1le81jHY8rwcaqQrtA thedrip right-center left-center commentary finance
https://chinaunscripted.libsyn.com/rss china-unscripted
https://odysee.com/$/rss/@BretWeinstein:f
"-----------------"
"---- Luke Smith chad"
@ -104,12 +108,21 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCrI3dm4qgAEV67Jc6797WIA ran
"-----------------"
https://www.youtube.com/feeds/videos.xml?channel_id=UCd6vEDS3SOhWbXZrxbrf_bw samtime
https://www.youtube.com/feeds/videos.xml?channel_id=UClgVmK6jZTZKAIlEhK1KRVQ sixteenleo
https://www.youtube.com/feeds/videos.xml?channel_id=UCcoDpbA4c9HQY0AjKHSlKLg cer-spence
https://www.youtube.com/feeds/videos.xml?channel_id=UCBNG0osIBAprVcZZ3ic84vw jim-browning
"-----------------"
"---- Youtube-Keyboard"
"-----------------"
https://www.youtube.com/feeds/videos.xml?channel_id=UCeHOkFGW-7uAZFvq3BXb8YA wildcat
"-----------------"
"---- Twitch"
"-----------------"
https://twitchrss.appspot.com/vod/michaelkadzioch
https://twitchrss.appspot.com/vod/tsoding
https://twitchrss.appspot.com/vod/togglebit
"-----------------"
"---- Pentesting"
"-----------------"

View File

@ -99,6 +99,7 @@ set magic
set tabstop=4
set sidescrolloff=999
set sidescrolloff=999
set scrolloff=999
set wildmenu
set wildchar=<TAB>

View File

@ -3,7 +3,7 @@
#################################
# requires https://github.com/jonaburg/picom
# (These are also the default values)
transition-length = 15
transition-length = 25
transition-pow-x = 0.1
transition-pow-y = 0.1
transition-pow-w = 0.1
@ -15,7 +15,7 @@ size-transition = true
# Corners #
#################################
# requires: https://github.com/sdhand/compton or https://github.com/jonaburg/picom
corner-radius = 0.0;
corner-radius = 10.0;
rounded-corners-exclude = [
#"window_type = 'normal'",
"class_g = 'dwm'",
@ -26,11 +26,13 @@ rounded-corners-exclude = [
"class_g = 'Polybar'",
"class_g = 'code-oss'",
#"class_g = 'TelegramDesktop'",
"class_g = 'firefox'",
#"class_g = 'firefox'",
"class_g = 'Thunderbird'",
"class_g = 'keynav'"
"class_g = 'keynav'",
"class_g = 'feh'",
"class_g = 'wal'"
];
round-borders = 0;
round-borders = 150;
round-borders-exclude = [
#"class_g = 'TelegramDesktop'",
];
@ -45,18 +47,18 @@ round-borders-exclude = [
# unless explicitly requested using the wintypes option.
#
# shadow = false
shadow = false;
shadow = true;
# The blur radius for shadows, in pixels. (defaults to 12)
# shadow-radius = 12
shadow-radius = 7;
shadow-radius = 12;
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
# shadow-opacity = .75
shadow-opacity = .60
# The left offset for shadows, in pixels. (defaults to -15)
# shadow-offset-x = -15
shadow-offset-x = -7;
#shadow-offset-x = -7;
# The top offset for shadows, in pixels. (defaults to -15)
# shadow-offset-y = -15
@ -127,18 +129,18 @@ shadow-exclude = [
# Fade windows in/out when opening/closing and when opacity changes,
# unless no-fading-openclose is used.
# fading = false
fading = false;
fading = true;
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
# fade-in-step = 0.028
fade-in-step = 0.03;
fade-in-step = 0.028;
# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
# fade-out-step = 0.03
fade-out-step = 0.03;
# The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
# fade-delta = 10
fade-delta = 2
# Specify a list of conditions of windows that should not be faded.
# don't need this, we disable fading for all normal windows with wintypes: {}
@ -160,30 +162,30 @@ fade-exclude = [
# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0)
# inactive-opacity = 1
inactive-opacity = 0.8;
inactive-opacity = 0.1;
# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
# frame-opacity = 1.0
frame-opacity = 0.7;
frame-opacity = 0.2;
# Default opacity for dropdown menus and popup menus. (0.0 - 1.0, defaults to 1.0)
# menu-opacity = 1.0
# menu-opacity is depreciated use dropdown-menu and popup-menu instead.
#If using these 2 below change their values in line 510 & 511 aswell
popup_menu = { opacity = 0.7; }
dropdown_menu = { opacity = 0.7; }
popup_menu = { opacity = 0.2; }
dropdown_menu = { opacity = 0.2; }
# Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows.
# inactive-opacity-override = true
inactive-opacity-override = false;
inactive-opacity-override = true;
# Default opacity for active windows. (0.0 - 1.0, defaults to 1.0)
active-opacity = 1.0;
# Dim inactive windows. (0.0 - 1.0, defaults to 0.0)
# inactive-dim = 0.0
inactive-dim = 0.1
# Specify a list of conditions of windows that should always be considered focused.
# focus-exclude = []
@ -211,13 +213,13 @@ opacity-rule = [
"100:class_g = 'XTerm'",
"100:class_g = 'URxvt'",
"100:class_g = 'kitty'",
"100:class_g = 'Alacritty'",
#"100:class_g = 'Alacritty'",
"80:class_g = 'Polybar'",
"100:class_g = 'code-oss'",
"100:class_g = 'Meld'",
"70:class_g = 'TelegramDesktop'",
"90:class_g = 'Joplin'",
"100:class_g = 'firefox'",
#"100:class_g = 'firefox'",
"100:class_g = 'Thunderbird'",
"100:class_g = 'keynav'"
];
@ -263,10 +265,10 @@ blur: {
# requires: https://github.com/ibhagwan/picom
method = "kawase";
#method = "kernel";
strength = 7;
strength = 1;
# deviation = 1.0;
# kernel = "11x11gaussian";
background = false;
background = true;
background-frame = false;
background-fixed = false;
kern = "3x3box";

View File

@ -1,4 +1,4 @@
#files: 913 version: 5.8
#files: 914 version: 5.8
_comps=(
'-' '_precommand'
@ -998,6 +998,7 @@ _comps=(
'nmap' '_nmap'
'nmblookup' '_samba'
'nmcli' '_networkmanager'
'nnn' '_nnn'
'nocorrect' '_precommand'
'node' '_node'
'noglob' '_precommand'
@ -1795,170 +1796,170 @@ autoload -Uz _afew _alacritty _android _archlinux-java _artisan \
_libinput _lilypond _loginctl _lunchy _mc \
_meson _middleman _mina _mix _mkinitcpio \
_mpv _mssh _mussh _mvn _nano \
_nanoc _nftables _ninja _node _notmuch \
_nvm _openssl _optirun _opustools _pacman \
_paru _pass _patool _perf _periscope \
_pgsql_utils _phing _pixz _pkcon _play \
_pm2 _port _protoc _pulseaudio _pygmentize \
_qpdf _rails _ralio _redis-cli _rfkill \
_rkt _rslsync _rspec _rsvm _rubocop \
_rustup _sbt _scala _scrub _sdd \
_setcap _setup.py _sfdx _shellcheck _showoff \
_srm _stack _subl _subliminal _supervisorctl \
_svm _tarsnap _teamocil _thor _tmuxinator \
_tmuxp _tox _trash-empty _trash-list _trash-put \
_trash-restore _udisksctl _ufw _vagrant _virtualbox \
_vnstat _wemux _wg-quick _xinput _xsel \
_xss-lock _xwallpaper _yaourt _yarn _youtube-dl \
_zathura _zcash-cli _cdr _all_labels _all_matches \
_alternative _approximate _arg_compile _arguments _bash_completions \
_cache_invalid _call_function _combination _comp_locale _complete \
_complete_debug _complete_help _complete_help_generic _complete_tag _correct \
_correct_filename _correct_word _describe _description _dispatch \
_expand _expand_alias _expand_word _extensions _external_pwds \
_generic _guard _history _history_complete_word _ignored \
_list _main_complete _match _menu _message \
_most_recent_file _multi_parts _next_label _next_tags _normal \
_nothing _oldlist _pick_variant _prefix _read_comp \
_regex_arguments _regex_words _requested _retrieve_cache _sep_parts \
_sequence _set_command _setup _store_cache _sub_commands \
_tags _user_expand _values _wanted _acpi \
_acpitool _alsa-utils _analyseplugin _brctl _btrfs \
_chattr _chcon _chrt _cpupower _cryptsetup \
_dkms _e2label _ethtool _findmnt _free \
_fuse_arguments _fuse_values _fusermount _gpasswd _htop \
_iconvconfig _ionice _ipset _iptables _iwconfig \
_kpartx _losetup _lsattr _lsblk _lsusb \
_ltrace _mdadm _mii-tool _modutils _mondo \
_networkmanager _opkg _pidof _pmap _qdbus \
_schedtool _selinux_contexts _selinux_roles _selinux_types _selinux_users \
_setsid _slabtop _ss _sshfs _strace \
_sysstat _tload _tpb _tracepath _tune2fs \
_uml _valgrind _vserver _wakeup_capable_devices _wipefs \
_wpa_cli _a2ps _aap _abcde _absolute_command_paths \
_ack _adb _ansible _ant _antiword \
_apachectl _apm _arch_archives _arch_namespace _arp \
_arping _asciidoctor _asciinema _at _attr \
_augeas _avahi _awk _base64 _basename \
_bash _baudrates _baz _beep _bibtex \
_bind_addresses _bison _bittorrent _bogofilter _bpf_filters \
_bpython _bzip2 _bzr _cabal _cal \
_calendar _canonical_paths _cat _ccal _cdcd \
_cdrdao _cdrecord _chkconfig _chmod _chown \
_chroot _chsh _cksum _clay _cmdambivalent \
_cmdstring _cmp _column _comm _composer \
_compress _configure _cowsay _cp _cpio \
_cplay _crontab _cscope _cssh _ctags_tags \
_curl _cut _cvs _darcs _date \
_date_formats _dates _dbus _dconf _dd \
_devtodo _df _dhclient _dict _dict_words \
_diff _diff3 _diff_options _diffstat _dig \
_dir_list _directories _django _dmesg _dmidecode \
_dns_types _doas _domains _dos2unix _drill \
_dsh _dtruss _du _dvi _ecasound \
_ed _elfdump _elinks _email_addresses _enscript \
_entr _env _espeak _etags _fakeroot \
_feh _fetchmail _ffmpeg _figlet _file_modes \
_file_systems _files _find _find_net_interfaces _finger \
_flac _flex _fmt _fold _fortune \
_fsh _fuser _gcc _gcore _gdb \
_gem _genisoimage _getconf _getent _getfacl \
_getmail _getopt _ghostscript _git _global \
_global_tags _gnu_generic _gnupod _gnutls _go \
_gpg _gphoto2 _gprof _gradle _graphicsmagick \
_grep _groff _groups _growisofs _gsettings \
_guilt _gzip _have_glob_qual _head _hexdump \
_host _hostname _hosts _iconv _id \
_ifconfig _iftop _imagemagick _init_d _initctl \
_install _iostat _ip _ipsec _irssi \
_ispell _java _java_class _joe _join \
_jq _killall _knock _kvno _last \
_ld_debug _ldconfig _ldd _less _lha \
_libvirt _links _list_files _lldb _ln \
_loadkeys _locale _localedef _locales _locate \
_look _lp _ls _lsof _lua \
_luarocks _lynx _lz4 _lzop _mail \
_mailboxes _make _man _md5sum _mencal \
_mh _mime_types _mkdir _mkfifo _mknod \
_mktemp _module _monotone _moosic _mosh \
_mount _mpc _mt _mtools _mtr \
_mutt _mv _my_accounts _myrepos _mysql_utils \
_mysqldiff _ncftp _net_interfaces _netcat _netstat \
_newsgroups _nginx _ngrep _nice _nkf \
_nl _nm _nmap _npm _nslookup \
_numfmt _objdump _object_files _od _openstack \
_other_accounts _pack _pandoc _paste _patch \
_patchutils _path_commands _path_files _pax _pbm \
_pdf _perforce _perl _perl_basepods _perl_modules \
_perldoc _pgrep _php _picocom _pids \
_pine _ping _pkg-config _pkg_instance _pkgadd \
_pkginfo _pkgrm _pon _ports _postfix \
_postgresql _postscript _printenv _printers _process_names \
_prove _ps _pspdf _psutils _pump \
_pv _pwgen _pydoc _python _python_modules \
_qemu _quilt _rake _ranlib _rar \
_rclone _rcs _readelf _readlink _remote_files \
_renice _ri _rlogin _rm _rmdir \
_route _rrdtool _rsync _rubber _ruby \
_runit _samba _sccs _scons _screen \
_script _seafile _sed _seq _service \
_services _setfacl _sh _shasum _showmount \
_shred _shuf _shutdown _signals _sisu \
_slrn _smartmontools _socket _sort _spamassassin \
_split _sqlite _sqsh _ssh _ssh_hosts \
_stat _stdbuf _stgit _stow _strings \
_strip _stty _su _subversion _sudo \
_surfraw _swaks _swanctl _swift _sys_calls \
_sysctl _tac _tail _tar _tar_archive \
_tardy _tcpdump _tcptraceroute _tee _telnet \
_terminals _tex _texi _texinfo _tidy \
_tiff _tilde_files _time_zone _timeout _tin \
_tla _tmux _todo.sh _toilet _top \
_topgit _totd _touch _tput _tr \
_transmission _tree _truss _tty _ttys \
_twidge _twisted _umountable _unace _uname \
_unexpand _uniq _unison _units _uptime \
_urls _user_admin _user_at_host _users _users_on \
_vcsh _vim _visudo _vmstat _vorbis \
_vpnc _w _w3m _watch _wc \
_webbrowser _wget _whereis _who _whois \
_wiggle _xargs _xmlsoft _xmlstarlet _xmms2 \
_xxd _xz _yafc _yodl _yp \
_zcat _zdump _zfs _zfs_dataset _zfs_keysource_props \
_zfs_pool _zip _zpool _zsh _acroread \
_code _dcop _eog _evince _geany \
_gnome-gv _gqview _gv _kdeconnect _kfmclient \
_matlab _mozilla _mplayer _mupdf _nautilus \
_nedit _netscape _okular _pdftk _qiv \
_rdesktop _setxkbmap _sublimetext _urxvt _vnc \
_x_arguments _x_borderwidth _x_color _x_colormapid _x_cursor \
_x_display _x_extension _x_font _x_geometry _x_keysym \
_x_locale _x_modifier _x_name _x_resource _x_selection_timeout \
_x_title _x_utils _x_visual _x_window _xauth \
_xautolock _xclip _xdvi _xfig _xft_fonts \
_xloadimage _xmodmap _xournal _xpdf _xrandr \
_xscreensaver _xset _xt_arguments _xt_session_id _xterm \
_xv _xwit _zeal _add-zle-hook-widget _add-zsh-hook \
_alias _aliases _arrays _assign _autocd \
_bindkey _brace_parameter _builtin _cd _command \
_command_names _compadd _compdef _completers _condition \
_default _delimiters _directory_stack _dirs _disable \
_dynamic_directory_name _echotc _echoti _emulate _enable \
_equal _exec _fc _file_descriptors _first \
_functions _globflags _globqual_delims _globquals _hash \
_history_modifiers _in_vared _jobs _jobs_bg _jobs_builtin \
_jobs_fg _kill _limit _limits _math \
_math_params _mere _module_math_func _options _options_set \
_options_unset _parameter _parameters _precommand _print \
_prompt _ps1234 _read _redirect _run-help \
_sched _set _setopt _source _strftime \
_subscript _suffix_alias_files _tcpsys _tilde _trap \
_ttyctl _typeset _ulimit _unhash _user_math_func \
_value _vared _vars _wait _which \
_widgets _zargs _zattr _zcalc _zcalc_line \
_zcompile _zed _zftp _zle _zmodload \
_zmv _zparseopts _zpty _zsh-mime-handler _zsocket \
_zstyle _ztodo
_nanoc _nftables _ninja _nnn _node \
_notmuch _nvm _openssl _optirun _opustools \
_pacman _paru _pass _patool _perf \
_periscope _pgsql_utils _phing _pixz _pkcon \
_play _pm2 _port _protoc _pulseaudio \
_pygmentize _qpdf _rails _ralio _redis-cli \
_rfkill _rkt _rslsync _rspec _rsvm \
_rubocop _rustup _sbt _scala _scrub \
_sdd _setcap _setup.py _sfdx _shellcheck \
_showoff _srm _stack _subl _subliminal \
_supervisorctl _svm _tarsnap _teamocil _thor \
_tmuxinator _tmuxp _tox _trash-empty _trash-list \
_trash-put _trash-restore _udisksctl _ufw _vagrant \
_virtualbox _vnstat _wemux _wg-quick _xinput \
_xsel _xss-lock _xwallpaper _yaourt _yarn \
_youtube-dl _zathura _zcash-cli _cdr _all_labels \
_all_matches _alternative _approximate _arg_compile _arguments \
_bash_completions _cache_invalid _call_function _combination _comp_locale \
_complete _complete_debug _complete_help _complete_help_generic _complete_tag \
_correct _correct_filename _correct_word _describe _description \
_dispatch _expand _expand_alias _expand_word _extensions \
_external_pwds _generic _guard _history _history_complete_word \
_ignored _list _main_complete _match _menu \
_message _most_recent_file _multi_parts _next_label _next_tags \
_normal _nothing _oldlist _pick_variant _prefix \
_read_comp _regex_arguments _regex_words _requested _retrieve_cache \
_sep_parts _sequence _set_command _setup _store_cache \
_sub_commands _tags _user_expand _values _wanted \
_acpi _acpitool _alsa-utils _analyseplugin _brctl \
_btrfs _chattr _chcon _chrt _cpupower \
_cryptsetup _dkms _e2label _ethtool _findmnt \
_free _fuse_arguments _fuse_values _fusermount _gpasswd \
_htop _iconvconfig _ionice _ipset _iptables \
_iwconfig _kpartx _losetup _lsattr _lsblk \
_lsusb _ltrace _mdadm _mii-tool _modutils \
_mondo _networkmanager _opkg _pidof _pmap \
_qdbus _schedtool _selinux_contexts _selinux_roles _selinux_types \
_selinux_users _setsid _slabtop _ss _sshfs \
_strace _sysstat _tload _tpb _tracepath \
_tune2fs _uml _valgrind _vserver _wakeup_capable_devices \
_wipefs _wpa_cli _a2ps _aap _abcde \
_absolute_command_paths _ack _adb _ansible _ant \
_antiword _apachectl _apm _arch_archives _arch_namespace \
_arp _arping _asciidoctor _asciinema _at \
_attr _augeas _avahi _awk _base64 \
_basename _bash _baudrates _baz _beep \
_bibtex _bind_addresses _bison _bittorrent _bogofilter \
_bpf_filters _bpython _bzip2 _bzr _cabal \
_cal _calendar _canonical_paths _cat _ccal \
_cdcd _cdrdao _cdrecord _chkconfig _chmod \
_chown _chroot _chsh _cksum _clay \
_cmdambivalent _cmdstring _cmp _column _comm \
_composer _compress _configure _cowsay _cp \
_cpio _cplay _crontab _cscope _cssh \
_ctags_tags _curl _cut _cvs _darcs \
_date _date_formats _dates _dbus _dconf \
_dd _devtodo _df _dhclient _dict \
_dict_words _diff _diff3 _diff_options _diffstat \
_dig _dir_list _directories _django _dmesg \
_dmidecode _dns_types _doas _domains _dos2unix \
_drill _dsh _dtruss _du _dvi \
_ecasound _ed _elfdump _elinks _email_addresses \
_enscript _entr _env _espeak _etags \
_fakeroot _feh _fetchmail _ffmpeg _figlet \
_file_modes _file_systems _files _find _find_net_interfaces \
_finger _flac _flex _fmt _fold \
_fortune _fsh _fuser _gcc _gcore \
_gdb _gem _genisoimage _getconf _getent \
_getfacl _getmail _getopt _ghostscript _git \
_global _global_tags _gnu_generic _gnupod _gnutls \
_go _gpg _gphoto2 _gprof _gradle \
_graphicsmagick _grep _groff _groups _growisofs \
_gsettings _guilt _gzip _have_glob_qual _head \
_hexdump _host _hostname _hosts _iconv \
_id _ifconfig _iftop _imagemagick _init_d \
_initctl _install _iostat _ip _ipsec \
_irssi _ispell _java _java_class _joe \
_join _jq _killall _knock _kvno \
_last _ld_debug _ldconfig _ldd _less \
_lha _libvirt _links _list_files _lldb \
_ln _loadkeys _locale _localedef _locales \
_locate _look _lp _ls _lsof \
_lua _luarocks _lynx _lz4 _lzop \
_mail _mailboxes _make _man _md5sum \
_mencal _mh _mime_types _mkdir _mkfifo \
_mknod _mktemp _module _monotone _moosic \
_mosh _mount _mpc _mt _mtools \
_mtr _mutt _mv _my_accounts _myrepos \
_mysql_utils _mysqldiff _ncftp _net_interfaces _netcat \
_netstat _newsgroups _nginx _ngrep _nice \
_nkf _nl _nm _nmap _npm \
_nslookup _numfmt _objdump _object_files _od \
_openstack _other_accounts _pack _pandoc _paste \
_patch _patchutils _path_commands _path_files _pax \
_pbm _pdf _perforce _perl _perl_basepods \
_perl_modules _perldoc _pgrep _php _picocom \
_pids _pine _ping _pkg-config _pkg_instance \
_pkgadd _pkginfo _pkgrm _pon _ports \
_postfix _postgresql _postscript _printenv _printers \
_process_names _prove _ps _pspdf _psutils \
_pump _pv _pwgen _pydoc _python \
_python_modules _qemu _quilt _rake _ranlib \
_rar _rclone _rcs _readelf _readlink \
_remote_files _renice _ri _rlogin _rm \
_rmdir _route _rrdtool _rsync _rubber \
_ruby _runit _samba _sccs _scons \
_screen _script _seafile _sed _seq \
_service _services _setfacl _sh _shasum \
_showmount _shred _shuf _shutdown _signals \
_sisu _slrn _smartmontools _socket _sort \
_spamassassin _split _sqlite _sqsh _ssh \
_ssh_hosts _stat _stdbuf _stgit _stow \
_strings _strip _stty _su _subversion \
_sudo _surfraw _swaks _swanctl _swift \
_sys_calls _sysctl _tac _tail _tar \
_tar_archive _tardy _tcpdump _tcptraceroute _tee \
_telnet _terminals _tex _texi _texinfo \
_tidy _tiff _tilde_files _time_zone _timeout \
_tin _tla _tmux _todo.sh _toilet \
_top _topgit _totd _touch _tput \
_tr _transmission _tree _truss _tty \
_ttys _twidge _twisted _umountable _unace \
_uname _unexpand _uniq _unison _units \
_uptime _urls _user_admin _user_at_host _users \
_users_on _vcsh _vim _visudo _vmstat \
_vorbis _vpnc _w _w3m _watch \
_wc _webbrowser _wget _whereis _who \
_whois _wiggle _xargs _xmlsoft _xmlstarlet \
_xmms2 _xxd _xz _yafc _yodl \
_yp _zcat _zdump _zfs _zfs_dataset \
_zfs_keysource_props _zfs_pool _zip _zpool _zsh \
_acroread _code _dcop _eog _evince \
_geany _gnome-gv _gqview _gv _kdeconnect \
_kfmclient _matlab _mozilla _mplayer _mupdf \
_nautilus _nedit _netscape _okular _pdftk \
_qiv _rdesktop _setxkbmap _sublimetext _urxvt \
_vnc _x_arguments _x_borderwidth _x_color _x_colormapid \
_x_cursor _x_display _x_extension _x_font _x_geometry \
_x_keysym _x_locale _x_modifier _x_name _x_resource \
_x_selection_timeout _x_title _x_utils _x_visual _x_window \
_xauth _xautolock _xclip _xdvi _xfig \
_xft_fonts _xloadimage _xmodmap _xournal _xpdf \
_xrandr _xscreensaver _xset _xt_arguments _xt_session_id \
_xterm _xv _xwit _zeal _add-zle-hook-widget \
_add-zsh-hook _alias _aliases _arrays _assign \
_autocd _bindkey _brace_parameter _builtin _cd \
_command _command_names _compadd _compdef _completers \
_condition _default _delimiters _directory_stack _dirs \
_disable _dynamic_directory_name _echotc _echoti _emulate \
_enable _equal _exec _fc _file_descriptors \
_first _functions _globflags _globqual_delims _globquals \
_hash _history_modifiers _in_vared _jobs _jobs_bg \
_jobs_builtin _jobs_fg _kill _limit _limits \
_math _math_params _mere _module_math_func _options \
_options_set _options_unset _parameter _parameters _precommand \
_print _prompt _ps1234 _read _redirect \
_run-help _sched _set _setopt _source \
_strftime _subscript _suffix_alias_files _tcpsys _tilde \
_trap _ttyctl _typeset _ulimit _unhash \
_user_math_func _value _vared _vars _wait \
_which _widgets _zargs _zattr _zcalc \
_zcalc_line _zcompile _zed _zftp _zle \
_zmodload _zmv _zparseopts _zpty _zsh-mime-handler \
_zsocket _zstyle _ztodo
autoload -Uz +X _call_program
typeset -gUa _comp_assocs

View File

@ -3,7 +3,8 @@
# Dmenu for selecting which browser to open.
Browsers='1. firefox
2. surf-open'
2. brave
3. surf-open'
Chosen=$(printf '%s' "$Browsers" \
| dmenu -i -l 20 -p 'Select browser:')
@ -11,6 +12,7 @@ Chosen=$(printf '%s' "$Browsers" \
case $Chosen in
'1. firefox') firefox "$@";;
'2. surf-open') surf-open "$@";;
'2. brave') brave "$@";;
'3. surf-open') surf-open "$@";;
*) eval "$Chosen" "$@";;
esac

View File

@ -1,92 +0,0 @@
#!/bin/bash
ScriptName=${0##*/}
TimerPIDFile="/tmp/dclock.pids"
# MenuItems
AddTimer="1. Add timer"
RemTimer="2. Remove timer"
ListTimers="3. List timers"
StartStopWatch="4. Start Stopwatch"
StopStopWatch="5. Stop Stopwatch"
ListStopWatch="6. Show Stopwatch"
ResetStopWatch="7. Reset Stopwatch"
_pid_file_cleanup() {
# Get timer PIDs
readarray -t timer_PIDs < $TimerPIDFile
[ "${timer_PIDs[0]}" = "" ] && return 1
# Remove no longer present timers
for PID in "${timer_PIDs[@]}"
do
[ "$(ps -p "$picked_PID" -o comm=)" = "" ] \
&& timer_PIDs=("${timer_PIDs[@]/$PID}")
done
# Save new PIDs
touch $TimerPIDFile
echo ${timer_PIDs[@]} > $TimerPIDFile
}
_timer_add() {
sleep $1 &
# Save pid
PID=$!
echo $PID >> $TimerPIDFile
notify-send "$ScriptName" "Added timer with duration: $duration, with \
PID: $PID"
}
_timer_remove() {
# Get timer PIDs
readarray -t timer_PIDs < $TimerPIDFile
# Get timers as menuitem
declare -a timers_duration
declare -a timers_took
declare -a timers
for PID in "${timer_PIDs[@]}"
do
sleep_duration=$(ps -o cmd= -fp $PID | sed 's/^sleep //' -)
durations+=($sleep_duration)
sleeped_duration=$(ps -o lstart= -p $PID \
| sed 's/^sleep //' -)
timers+="$PID timer $sleep_duration out of $sleep_duration"
done
# Prompt user to pick
picked_PID=$(echo ${timers[@]} \
| dmenu -i -l 10 -p "Pick timer to delete:" \
| awk 'BEGIN {FS=" "} ; {print $1}')
# Kill sleep process
[ "$(ps -p "$picked_PID" -o comm=)" = "sleep" ] && kill -9 $(awk '{print $1}')
# Check and notify if timer still active
[ "$(ps -p "$picked_PID" -o comm=)" = "sleep" ] \
&& notify-send "$ScriptName" "Failed to stop timer with PID: $picked_PID" && exit
# Remove unset PIDs from $TimerPIDFile
_pid_file_cleanup
notify-send "$ScriptName" "Stopped timer with PID: $picked_PID"
}
_pid_file_cleanup
ChosenMenu=$(printf '**Timers\n%s\n%s\n%s\n**Stopwatch\n%s\n%s\n%s\n%s' \
"$AddTimer" "$RemTimer" "$ListTimers" \
"$StartStopWatch" "$StopStopWatch" "$ListStopWatch" "$ResetStopWatch" \
| dmenu -i -l 7 -p "$ScriptName")
if [ "$ChosenMenu" = "$AddTimer" ]; then
duration=$(printf "h = hours\nm = minutes\ns = seconds" \
| dmenu -i -l 3 -p \ "Timer Duration:")
_timer_add $duration
elif [ "$ChosenMenu" = "$RemTimer" ]; then
_timer_remove
fi

View File

@ -11,7 +11,7 @@ ChosenMenu=$(printf '%s\n%s\n%s' \
| dmenu -i -l 10 -p "$ScriptName:")
if [ "$ChosenMenu" = "$NormalApps" ]; then
alacritty -t "sys_monitor" -e "bpytop" &
alacritty -t "sys_monitor" -e "htop" &
alacritty -t "newsboat" -e "newsboat" &
alacritty -t "music" -e "ncmpcpp" &
alacritty -t "mixer" -e "pulsemixer" &

View File

@ -5,19 +5,25 @@
ScriptName=${0##*/}
Version=1.0.0
#browser='firefox' # firefox
browser='dbrowsel' # firefox
browser='dbrowsel'
search_engine='https://duckduckgo.com/?q='
# Set menu options:
SearchWeb='0. Search the web.'
MenuOpen='1. Open a bookmark.'
MenuSave='2. Create new bookmark.'
RunFirefox='3. Run Firejailed Firefox.'
OpenBrowser='1. Open a browser.'
MenuOpen='2. Open a bookmark.'
MenuSave='3. Create new bookmark.'
RunFirefox='4. Run Firejailed Firefox.'
ChosenMenu=$(printf '%s\n%s\n%s\n%s' \
"$SearchWeb" "$MenuOpen" "$MenuSave" "$RunFirefox" \
ChosenMenu=$(printf '%s\n%s\n%s\n%s\n%s' \
"$SearchWeb" "$OpenBrowser" "$MenuOpen" "$MenuSave" "$RunFirefox" \
| dmenu -i -l 10 -p "$ScriptName:")
# Open browser
if [ "$ChosenMenu" = "$OpenBrowser" ]; then
exec dbrowsel &
fi
# Search web
if [ "$ChosenMenu" = "$SearchWeb" ]; then
search=$(dmenu -l 1 -i -p "Search:")

View File

@ -2,5 +2,5 @@
[[ -f ~/.config/env ]] && source ~/.config/env
#if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec sx sh ~/.config/X11/dwm-xinit; fi
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec ssh-agent startx ~/.config/X11/dwm-xinit; fi
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec ssh-agent sx sh ~/.config/X11/dwm-xinit; fi
#if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec ssh-agent startx ~/.config/X11/dwm-xinit; fi