diff options
author | Joe <bousset.rudy@gmail.com> | 2022-08-01 09:40:43 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-08-01 09:40:43 +0200 |
commit | 3288d67c3d950af2e4ee4a65257406d94cdece20 (patch) | |
tree | 174033d5eaf3c7f1c5d044fa6fe8efc933461b80 | |
parent | dtwm changes (diff) | |
parent | update (diff) | |
download | dotfiles-bsd-3288d67c3d950af2e4ee4a65257406d94cdece20.tar.gz dotfiles-bsd-3288d67c3d950af2e4ee4a65257406d94cdece20.tar.bz2 dotfiles-bsd-3288d67c3d950af2e4ee4a65257406d94cdece20.tar.xz dotfiles-bsd-3288d67c3d950af2e4ee4a65257406d94cdece20.tar.zst dotfiles-bsd-3288d67c3d950af2e4ee4a65257406d94cdece20.zip |
Merge branch 'master' of gitjoe.xyz:dotfiles-bsd
Diffstat (limited to '')
-rw-r--r-- | .Xdefaults | 27 | ||||
-rw-r--r-- | .config/emacs/init.el | 5 | ||||
-rw-r--r-- | .config/env | 10 | ||||
-rw-r--r-- | .config/zsh/.zshrc | 2 | ||||
-rw-r--r-- | .config/zsh/alias.zsh | 4 | ||||
-rw-r--r-- | .dt/dtwmrc | 18 | ||||
-rw-r--r-- | .dt/palettes/desc.palettes | 1 | ||||
-rw-r--r-- | .dt/palettes/dtB250bq.dp | 8 | ||||
-rwxr-xr-x | .dtprofile | 169 | ||||
-rwxr-xr-x | .local/bin/dmlog | 2 | ||||
-rwxr-xr-x | .local/bin/dtinit | 22 |
11 files changed, 248 insertions, 20 deletions
diff --git a/.Xdefaults b/.Xdefaults new file mode 100644 index 0000000..b24f2eb --- /dev/null +++ b/.Xdefaults @@ -0,0 +1,27 @@ +*0*ColorPalette: dtB250bq.dp +Dtwm*0*ws4*title: Five +Dtwm*0*ws5*backdrop*image: WaterDrops +Dtwm*0*ws5*title: Six +Dtwm*0*FrontPanel*geometry: -323-0 +Dtwm*0*ws1*backdrop*image: Ankh +Dtwm*0*ws1*title: Two +Dtwm*0*ws0*backdrop*image: BrickWall +Dtwm*0*ws2*title: Three +Dtwm*0*ws6*backdrop*image: Toronto +Dtwm*0*ws6*title: Seven +Dtwm*0*ws3*title: Four +Dtwm*0*ws7*backdrop*image: Concave +Dtwm*0*ws7*title: Eight +! Dtwm*0*helpResources: \n\ + +Dtwm*moveOpaque: True +Dtwm*secondariesOnTop: False +Dtwm*useIconBox: True + +Dtwm*0*initialWorkspace: ws0 +Dtwm*0*workspaceCount: 8 +Dtwm*0*workspaceList: "ws0" "ws1" "ws2" "ws3" "ws4" "ws5" "ws6" "ws7" +dtsession*sessionLanguage: C +*background: #C6C6B2B2A8A8 +*foreground: #000000000000 + diff --git a/.config/emacs/init.el b/.config/emacs/init.el index f0425b7..38af20b 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -10,8 +10,6 @@ ;; If there is more than one, they won't work right. '(ansi-color-faces-vector [default default default italic underline success warning error]) - '(ansi-color-names-vector - ["#292D3E" "#ff5370" "#c3e88d" "#ffcb6b" "#82aaff" "#c792ea" "#89DDFF" "#EEFFFF"]) '(auth-source-save-behavior nil) '(ccls-sem-function-colors '("#e5b124")) '(ccls-sem-parameter-faces @@ -41,8 +39,7 @@ '(jdee-db-spec-breakpoint-face-colors (cons "#1c1f2b" "#676E95")) '(objed-cursor-color "#ff5370") '(package-selected-packages - '(neotree color-theme doom-modeline-now-playing treemacs-icons-dired edit-indirect yaml-mode lua-mode company-nginx company-fuzzy company-go company-shell helm-ag rainbow-identifiers nginx-mode evil-quickscope vc-fossil crontab-mode go-mode mutt-mode pacmacs gemini-mode org-evil glsl-mode vimrc-mode windresize evil evil-collection evil-leader evil-search-highlight-persist evil-mc evil-surround evil-ediff evil-visual-mark-mode evil-nerd-commenter evil-vimish-fold evil-numbers yasnippet yasnippet-classic-snippets yasnippet-snippets auto-yasnippet el-autoyas helm helm-xref helm-etags-plus helm-fuzzy helm-themes helm-make helm-projectile projectile company company-box which-key magit undo-tree shell-pop autopair paredit rainbow-delimiters color-identifiers-mode ibuffer-vc ibuffer-projectile eyebrowse diff-hl fzf font-utils restart-emacs string-utils dired-icon kaolin-themes doom-themes spacemacs-theme dashboard org-superstar toc-org pdf-tools dockerfile-mode web-mode ssh sudo-ext vimish-fold bind-key all-the-icons all-the-icons-dired all-the-icons-ibuffer)) - '(pdf-view-midnight-colors (cons "#EEFFFF" "#292D3E")) + '(helm-fuzzy-find helm-fuzzier fuzzy fuzzy-finder neotree color-theme doom-modeline-now-playing treemacs-icons-dired edit-indirect yaml-mode lua-mode company-nginx company-fuzzy company-go company-shell helm-ag rainbow-identifiers nginx-mode evil-quickscope vc-fossil crontab-mode go-mode mutt-mode pacmacs gemini-mode org-evil glsl-mode vimrc-mode windresize evil evil-collection evil-leader evil-search-highlight-persist evil-mc evil-surround evil-ediff evil-visual-mark-mode evil-nerd-commenter evil-vimish-fold evil-numbers yasnippet yasnippet-classic-snippets yasnippet-snippets auto-yasnippet el-autoyas helm helm-xref helm-etags-plus helm-fuzzy helm-themes helm-make helm-projectile projectile company company-box which-key magit undo-tree shell-pop autopair paredit rainbow-delimiters color-identifiers-mode ibuffer-vc ibuffer-projectile eyebrowse diff-hl fzf font-utils restart-emacs string-utils dired-icon kaolin-themes doom-themes spacemacs-theme dashboard org-superstar toc-org pdf-tools dockerfile-mode web-mode ssh sudo-ext vimish-fold bind-key all-the-icons all-the-icons-dired all-the-icons-ibuffer)) '(pos-tip-background-color "#2E2A29") '(pos-tip-foreground-color "#d4d4d6") '(rustic-ansi-faces diff --git a/.config/env b/.config/env index 2ad51f7..c89c760 100644 --- a/.config/env +++ b/.config/env @@ -22,6 +22,7 @@ export XDG_DOWNLOAD_DIR="$HOME"/dl export XDG_MUSIC_DIR="$HOME"/mu export XDG_PICTURES_DIR="$HOME"/pics export XDG_VIDEOS_DIR="$HOME"/vids +export XDG_RUNTIME_DIR=/tmp/xdg_runtime # Apps export EDITOR="editorcmd" @@ -34,8 +35,8 @@ export FILE='lf' # UTF-8 export CHARSET='UTF-8' -export LANG='en_US.UTF-8' -# export LANG='C' +# export LANG='en_US.UTF-8' +export LANG='C' export LC_COLLATE='C' export LC_ALL='' @@ -49,12 +50,13 @@ export CCACHE_CONFIGPATH="$XDG_CONFIG_HOME"/ccache.conf export CCACHE_DIR="$XDG_CACHE_HOME"/ccache export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker export DVDCSS_CACHE="$XDG_DATA_HOME"/dvdcss +export FOSSGIT="$XDG_DATA_HOME"/fossil/git_exports +export FOSSIL="$XDG_DATA_HOME"/fossil/repos export GNUPGHOME="$XDG_DATA_HOME"/gnupg export GPG_TUI_CONFIG="$XDG_CONFIG_HOME"/gpg-tui/gpg-tui.toml export GOPATH="$XDG_DATA_HOME"/go export GOBIN="$GOPATH"/bin -export FOSSGIT="$XDG_DATA_HOME"/fossil/git_exports -export FOSSIL="$XDG_DATA_HOME"/fossil/repos +export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_DATA_HOME"/java export MACHINE_STORAGE_PATH="$XDG_DATA_HOME"/docker-machine export NODE_REPL_HISTORY="$XDG_DATA_HOME"/node_repl_history export NOTMUCH_CONFIG="$XDG_CONFIG_HOME"/notmuch/notmuchrc diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 6af7f1d..b26ff59 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -102,5 +102,7 @@ bindkey -v "^ " globalias bindkey -v " " magic-space bindkey -M isearch " " magic-space +export LANG='en_US.UTF-8' + PROMPT="%B%{$fg[red]%}%M %{$fg[blue]%}%c%{$fg[red]%}%#%{$reset_color%} " RPROMPT="%{$fg_bold[red]%}%(?..%?)%{$reset_color%}" diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh index 65b3c3d..edea077 100644 --- a/.config/zsh/alias.zsh +++ b/.config/zsh/alias.zsh @@ -24,9 +24,9 @@ alias \ bc='bc -l' \ mkf='gmake fclean' \ mkc='gmake clean' \ - mk='gmake -j9' \ + mk='gmake -j5' \ bmkc='make clean' \ - bmk='make -j9' \ + bmk='make -j5' \ web='w3m https://duckduckgo.com/' \ mpv='mpv --audio-channels=stereo' \ bat='bat --style=plain --tabs 4 --paging=always -f' \ @@ -21,15 +21,15 @@ Keys DtKeyBindings Mod4<Key>F1 root|window|icon f.exec "dtfile" Mod4<Key>F2 root|window|icon f.exec "emacsclient -c" Mod4<Key>F3 root|window|icon f.exec "iridium --force-dark-mode" - Mod4<Key>F4 root|window|icon f.exec "alacritty -e w3m" - Mod4<Key>F5 root|window|icon f.exec "alacritty -e ncmpc" - Mod4<Key>F6 root|window|icon f.exec "alacritty -e newsboat" - Mod4<Key>F7 root|window|icon f.exec "alacritty -e calcurse -C /home/jozan/.config/calcurse -D /home/jozan/.local/share/calcurse" - Mod4<Key>F8 root|window|icon f.exec "alacritty -e scli" - Mod4<Key>F9 root|window|icon f.exec "alacritty -e neomutt" - Mod4<Key>F10 root|window|icon f.exec "alacritty -e gotop" - Mod4<Key>F11 root|window|icon f.exec "alacritty -e htop" - Mod4<Key>F12 root|window|icon f.exec "alacritty -e top" + Mod4<Key>F4 root|window|icon f.exec "zsh -ic 'alacritty -e w3m'" + Mod4<Key>F5 root|window|icon f.exec "zsh -ic 'alacritty -e ncmpc'" + Mod4<Key>F6 root|window|icon f.exec "zsh -ic 'alacritty -e newsboat'" + Mod4<Key>F7 root|window|icon f.exec "zsh -ic 'alacritty -e calcurse -C /home/jozan/.config/calcurse -D /home/jozan/.local/share/calcurse'" + Mod4<Key>F8 root|window|icon f.exec "zsh -ic 'alacritty -e scli'" + Mod4<Key>F9 root|window|icon f.exec "zsh -ic 'alacritty -e neomutt'" + Mod4<Key>F10 root|window|icon f.exec "zsh -ic 'alacritty -e gotop'" + Mod4<Key>F11 root|window|icon f.exec "zsh -ic 'alacritty -e htop'" + Mod4<Key>F12 root|window|icon f.exec "zsh -ic 'alacritty -e top" Mod4 Shift<Key>F3 root|window|icon f.exec "torify iridium --force-dark-mode" Mod4 Shift<Key>F6 root|window|icon f.exec "mpc prev" diff --git a/.dt/palettes/desc.palettes b/.dt/palettes/desc.palettes new file mode 100644 index 0000000..99becb1 --- /dev/null +++ b/.dt/palettes/desc.palettes @@ -0,0 +1 @@ +Palettes*dtB250bq.desc: Jozan diff --git a/.dt/palettes/dtB250bq.dp b/.dt/palettes/dtB250bq.dp new file mode 100644 index 0000000..8bca8c5 --- /dev/null +++ b/.dt/palettes/dtB250bq.dp @@ -0,0 +1,8 @@ +#6e6e00000000 +#b4b4aaaa9494 +#a0a0b2b2c8c8 +#d2d2bfbfa8a8 +#c6c6b2b2a8a8 +#9797a7a79292 +#b7b7aeaeaaaa +#9393ababbfbf diff --git a/.dtprofile b/.dtprofile new file mode 100755 index 0000000..79ec412 --- /dev/null +++ b/.dtprofile @@ -0,0 +1,169 @@ +# ########################################################################## +# # +# # .dtprofile +# # +# # user personal environment variables +# # +# # Common Desktop Environment (CDE) +# # +# # (c) Copyright 1996 Digital Equipment Corporation. +# # (c) Copyright 1993,1994,1996 Hewlett-Packard Company. +# # (c) Copyright 1993,1994,1996 International Business Machines Corp. +# # (c) Copyright 1993,1994,1996 Sun Microsystems, Inc. +# # (c) Copyright 1993,1994,1996 Novell, Inc. +# # (c) Copyright 1996 FUJITSU LIMITED. +# # (c) Copyright 1996 Hitachi. +# # +# # +# # $TOG: dtprofile.src /main/5 1999/03/30 10:32:43 mgreess $ +# # +# ########################################################################## + + +# ########################################################################## +# # +# # Your $HOME/.dtprofile is read each time you login to the Common Desktop +# # Environment (CDE) and is the place to set or override desktop +# # environment variables for your session. Environment variables set in +# # $HOME/.dtprofile are made available to all applications on the desktop. +# # The desktop will accept either sh or ksh syntax for the commands in +# # $HOME/.dtprofile. +# # +# ########################################################################## + + +# ########################################################################## +# # +# # Random stdout and stderr output from apps started by Session Mgr or +# # by actions via front panel or workspace menu can be directed into +# # the user's $HOME/.dt/sessionlogs directory. By default this output +# # is not recorded. Instead it is sent off to /dev/null (Unix's "nothing" +# # device). +# # +# # If this random application output is wanted (usually only wanted for +# # debugging purposes), commenting out following "dtstart_sessionlogfile" +# # lines will send output to your $HOME/.dt/sessionlogs directory. +# # +# # Alternatively, can change "/dev/null" to "/dev/console" to see this +# # debugging output on your console device. Can start a console via the +# # Workspace programs menu or via Application Mgr's Desktop Tools +# # "Terminal Console" icon. +# # +# ########################################################################## + +echo "This session log file is currently disabled." > $dtstart_sessionlogfile +echo "To enable logging, edit $HOME/.dtprofile and" >> $dtstart_sessionlogfile +echo "remove dtstart_sessionlogfile=/dev/null line." >> $dtstart_sessionlogfile + +export dtstart_sessionlogfile="/dev/null" + + +# ########################################################################## +# # +# # By default, the desktop does not read your standard $HOME/.profile +# # or $HOME/.login files. This can be changed by uncommenting the +# # DTSOURCEPROFILE variable assignment at the end of this file. The +# # desktop reads .profile if your $SHELL is "sh" or "ksh", or .login +# # if your $SHELL is "csh". +# # +# # The desktop reads the .dtprofile and .profile/.login without an +# # associated terminal emulator such as xterm or dtterm. This means +# # there is no available command line for interaction with the user. +# # This being the case, these scripts must avoid using commands that +# # depend on having an associated terminal emulator or that interact +# # with the user. Any messages printed in these scripts will not be +# # seen when you log in and any prompts such as by the 'read' command +# # will return an empty string to the script. Commands that set a +# # terminal state, such as "tset" or "stty" should be avoided. +# # +# # With minor editing, it is possible to adapt your .profile or .login +# # for use both with and without the desktop. Group the statements not +# # appropriate for your desktop session into one section and enclose them +# # with an "if" statement that checks for the setting of the "DT" +# # environment variable. When the desktop reads your .profile or .login +# # file, it will set "DT" to a non-empty value for which your .profile or +# # .login can test. +# # +# # example for sh/ksh +# # +# # if [ ! "$DT" ]; then +# # # +# # # commands and environment variables not appropriate for desktop +# # # +# # stty ... +# # tset ... +# # DISPLAY=mydisplay:0 +# # ... +# # fi +# # +# # # +# # # environment variables common to both desktop and non-desktop +# # # +# # PATH=$HOME/bin:$PATH +# # MYVAR=value +# # export MYVAR +# # ... +# # +# # example for csh +# # +# # if ( ! ${?DT} ) then +# # # +# # # commands and environment variables not appropriate for desktop +# # # +# # stty ... +# # tset ... +# # setenv DISPLAY mydisplay:0 +# # ... +# # endif +# # +# # # +# # # environment variables common to both desktop and non-desktop +# # # +# # setenv PATH $HOME/bin:$PATH +# # setenv MYVAR value +# # ... +# # +# # Errors in .dtprofile or .profile (.login) may prevent a successful +# # login. The login process scans .dtprofile and .profile (.login) +# # for errors (using the '-n' option to the shell). It avoids running +# # them if errors are found and prints the errors to the +# # $HOME/.dt/startlog file. However, his process is not fool proof +# # as some shells are better at finding errors thant others. +# # If after you login, your session startup terminates and you +# # are presented with the login screen, this might be the cause. If this +# # happens, select the Options->Sessions->Failsafe Session item on the +# # login screen, login and correct the error. The $HOME/.dt/startlog and +# # $HOME/.dt/errorlog files may be helpful in identifying errors. +# # +# ########################################################################## + +# +# If $HOME/.profile (.login) has been edited as described above, uncomment +# the following line. +# +# DTSOURCEPROFILE=true + +export DTOPEN_VIMAGE="xv nsxiv display gimp" +export DTOPEN_VVIDEO="mpv" +export DTOPEN_VPS="gv" +export DTOPEN_VPDF="xpdf zathura" + +startif() { + pgrep "$1" >/dev/null || "$@" >/dev/null 2>&1 & +} + + +sysctl hw.snd.default_unit=4 +pgrep musicpd >/dev/null || musicpd >/dev/null 2>&1 +"$HOME"/.local/bin/kb +xset s off +xset -dpms +startif dunst +startif picom +startif lowbat +startif mpd-notification +startif xscreensaver --no-splash +# ekb +cd "$HOME" +xrdb "$HOME"/.config/x11/xresources +notify-send -u normal 'Welcome' " Welcome back, partner\!" diff --git a/.local/bin/dmlog b/.local/bin/dmlog index 786d59b..a2e8458 100755 --- a/.local/bin/dmlog +++ b/.local/bin/dmlog @@ -88,7 +88,7 @@ sub action ' Farewell, partner!' ); sleep 2; - exec(SHUTDOWN_PATH, '-h', 'now'); + exec(SHUTDOWN_PATH, '-p', 'now'); } } return; diff --git a/.local/bin/dtinit b/.local/bin/dtinit new file mode 100755 index 0000000..b583bb5 --- /dev/null +++ b/.local/bin/dtinit @@ -0,0 +1,22 @@ +#!/bin/sh + +startif() { + pgrep "$1" >/dev/null || "$@" >/dev/null 2>&1 & +} + +sysctl hw.snd.default_unit=4 +pgrep musicpd >/dev/null || musicpd >/dev/null 2>&1 +# "$HOME"/.local/bin/setwp +"$HOME"/.local/bin/kb +xset s off +xset -dpms +startif dunst +startif picom +startif lowbat +startif mpd-notification +startif xscreensaver --no-splash +# ekb +cd "$HOME" +xrdb "$HOME"/.config/x11/xresources +notify-send -u normal 'Welcome' " Welcome back, partner\!" +# dbus-launch dwm |