summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-07-28 16:41:46 +0200
committerJoe <bousset.rudy@gmail.com>2022-07-28 16:41:46 +0200
commit3e8f0c71297ef8a0168ed2df98f373daaac8ed75 (patch)
tree062fb6a892afc9be874f7dcd167f6062d53a7c6e
parentcompat (diff)
downloaddotfiles-bsd-3e8f0c71297ef8a0168ed2df98f373daaac8ed75.tar.gz
dotfiles-bsd-3e8f0c71297ef8a0168ed2df98f373daaac8ed75.tar.bz2
dotfiles-bsd-3e8f0c71297ef8a0168ed2df98f373daaac8ed75.tar.xz
dotfiles-bsd-3e8f0c71297ef8a0168ed2df98f373daaac8ed75.tar.zst
dotfiles-bsd-3e8f0c71297ef8a0168ed2df98f373daaac8ed75.zip
CDE
-rw-r--r--.config/alacritty/alacritty.yml16
-rw-r--r--.config/env3
-rw-r--r--.config/mimeapps.list14
-rw-r--r--.config/x11/xinitrc1
-rw-r--r--.dt/dtwmrc76
-rwxr-xr-x.local/bin/dmlog17
6 files changed, 110 insertions, 17 deletions
diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml
index 5e54444..2bc70c5 100644
--- a/.config/alacritty/alacritty.yml
+++ b/.config/alacritty/alacritty.yml
@@ -26,20 +26,20 @@ window:
#
# Specified in number of pixels.
# If the position is not set, the window manager will handle the placement.
- position:
- x: 0
- y: 0
+ # position:
+ # x: 0
+ # y: 0
# Window padding (changes require restart)
#
# Blank space added around the window in pixels. This padding is scaled
# by DPI and the specified value is always added at both opposing sides.
- padding:
- x: 0
- y: 0
+ # padding:
+ # x: 0
+ # y: 0
# Spread additional padding evenly around the terminal content.
- dynamic_padding: false
+ # dynamic_padding: false
# Window decorations
#
@@ -50,7 +50,7 @@ window:
# Values for `decorations` (macOS only):
# - transparent: Title bar, transparent background and title bar buttons
# - buttonless: Title bar, transparent background, but no title bar buttons
- decorations: none
+ decorations: full
# Startup Mode (changes require restart)
#
diff --git a/.config/env b/.config/env
index 53b6e41..2ad51f7 100644
--- a/.config/env
+++ b/.config/env
@@ -35,6 +35,7 @@ export FILE='lf'
# UTF-8
export CHARSET='UTF-8'
export LANG='en_US.UTF-8'
+# export LANG='C'
export LC_COLLATE='C'
export LC_ALL=''
@@ -86,4 +87,4 @@ export WWW_HOME="https://start.duckduckgo.com/"
YTFZF_HIST='0'
# PATH
-export PATH="$HOME"/.local/bin:"$GOBIN":"$XDG_PACKAGE_HOME"/fzf-zsh-plugin/bin:"$XDG_DATA_HOME"/cargo/bin:"$PATH":/usr/local/llvm13/bin:/usr/local/llvm12/bin
+export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:"$HOME"/bin:"$HOME"/.local/bin:"$GOBIN":"$XDG_PACKAGE_HOME"/fzf-zsh-plugin/bin:"$XDG_DATA_HOME"/cargo/bin:"$PATH":/usr/local/llvm13/bin:/usr/local/llvm12/bin
diff --git a/.config/mimeapps.list b/.config/mimeapps.list
index 1c10033..6d7d0eb 100644
--- a/.config/mimeapps.list
+++ b/.config/mimeapps.list
@@ -25,6 +25,20 @@ audio/webm=mpv.desktop
video/mpeg=mpv.desktop
video/ogg=mpv.desktop
video/webm=mpv.desktop
+inode/directory=pcmanfm.desktop
+text/plain=emacs.desktop
+application/x-shellscript=emacs.desktop
+text/english=emacs.desktop
+text/x-c=emacs.desktop
+text/x-c++=emacs.desktop
+text/x-c++hdr=emacs.desktop
+text/x-c++src=emacs.desktop
+text/x-chdr=emacs.desktop
+text/x-csrc=emacs.desktop
+text/x-java=emacs.desktop
+text/x-makefile=emacs.desktop
+text/x-readme=emacs.desktop
+text/x-tcl=emacs.desktop
[Added Associations]
x-scheme-handler/https=userapp-Firefox-NVLWI0.desktop;
diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc
index a17288c..e5e2490 100644
--- a/.config/x11/xinitrc
+++ b/.config/x11/xinitrc
@@ -13,6 +13,7 @@ startif dunst
startif picom
startif lowbat
startif mpd-notification
+startif xscreensaver --no-splash
ekb
cd "$HOME"
xrdb "$HOME"/.config/x11/xresources
diff --git a/.dt/dtwmrc b/.dt/dtwmrc
new file mode 100644
index 0000000..b7116d0
--- /dev/null
+++ b/.dt/dtwmrc
@@ -0,0 +1,76 @@
+Keys DtKeyBindings
+{
+ Mod4<Key>1 root|window|icon f.goto_workspace "ws0"
+ Mod4<Key>2 root|window|icon f.goto_workspace "ws1"
+ Mod4<Key>3 root|window|icon f.goto_workspace "ws2"
+ Mod4<Key>4 root|window|icon f.goto_workspace "ws3"
+ Mod4<Key>5 root|window|icon f.goto_workspace "ws4"
+ Mod4<Key>6 root|window|icon f.goto_workspace "ws5"
+ Mod4<Key>7 root|window|icon f.goto_workspace "ws6"
+ Mod4<Key>8 root|window|icon f.goto_workspace "ws7"
+
+ Mod4 Shift<Key>1 window|icon f.workspace_presence "ws0"
+ Mod4 Shift<Key>2 window|icon f.workspace_presence "ws1"
+ Mod4 Shift<Key>3 window|icon f.workspace_presence "ws2"
+ Mod4 Shift<Key>4 window|icon f.workspace_presence "ws3"
+ Mod4 Shift<Key>5 window|icon f.workspace_presence "ws4"
+ Mod4 Shift<Key>6 window|icon f.workspace_presence "ws5"
+ Mod4 Shift<Key>7 window|icon f.workspace_presence "ws6"
+ Mod4 Shift<Key>8 window|icon f.workspace_presence "ws7"
+
+ 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"
+ 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 Shift<Key>F3 root|window|icon f.exec "torify iridium"
+ Mod4 Shift<Key>F6 root|window|icon f.exec "mpc prev"
+ Mod4 Shift<Key>F7 root|window|icon f.exec "mpc toggle"
+ Mod4 Shift<Key>F8 root|window|icon f.exec "mpc next"
+ Mod4 Shift<Key>F9 root|window|icon f.exec "mpc stop"
+ Mod4 Shift<Key>F10 root|window|icon f.exec "mixer-set toggle"
+ Mod4 Shift<Key>F11 root|window|icon f.exec "mixer-set lower"
+ Mod4 Shift<Key>F12 root|window|icon f.exec "mixer-set raise"
+ Mod4 Shift<Key>Delete root|window|icon f.exec "mic"
+
+ Mod4 Ctrl<Key>F9 root|window|icon f.exec "dmkill"
+ Mod4 Ctrl<Key>F10 root|window|icon f.exec "dmscrot"
+ Mod4 Ctrl<Key>F11 root|window|icon f.exec "dmsearch"
+ Mod4 Ctrl<Key>F12 root|window|icon f.exec "dmlog"
+
+ Mod4 Ctrl<Key>p root|window|icon f.exec "dmpass"
+ Mod4 Shift Ctrl<Key>p root|window|icon f.exec "dmpass --full"
+ Mod4 <Key>End root|window|icon f.exec "ndate"
+ Mod4 <Key>Delete root|window|icon f.exec "shutup"
+ Mod4 Shift<Key>Delete root|window|icon f.exec "mic"
+ Mod4<Key>BackSpace root|window|icon f.exec "dmpc"
+ Mod4 Ctrl<Key>BackSpace root|window|icon f.exec "dmlog"
+
+ Mod4<Key>Return root|window|icon f.exec "alacritty"
+
+ Meta<Key>Escape root|window|icon f.next_key window
+ Mod4<Key>q window f.kill
+ Mod4<Key>f window f.maximize
+ Mod4<Key>s window f.normalize
+ Mod4<Key>w window f.move
+ Mod4<Key>m window f.move
+ Mod4 Shift<Key>w window f.resize
+ Mod4 Shift<Key>m window f.resize
+ Mod4 Shift<Key>H window f.raise
+ Mod4 Shift<Key>L window f.lower
+ Mod4<Key>h root|window|icon f.screen prev
+ Mod4<Key>l root|window|icon f.screen next
+ Mod4<Key>j root|window|icon f.next_key window
+ Mod4<Key>k root|window|icon f.prev_key window
+ Mod4<Key>p root|window|icon f.exec "dmenu_run -i -m 0"
+ Mod4 Shift<Key>E root|window|icon f.quit_dtwm
+ Mod4 Shift<Key>R root|window|icon f.restart
+}
diff --git a/.local/bin/dmlog b/.local/bin/dmlog
index 9be8cf6..786d59b 100755
--- a/.local/bin/dmlog
+++ b/.local/bin/dmlog
@@ -3,12 +3,13 @@
use strict;
use warnings;
use constant {
- SLOCK_PATH => 'slock',
- ACPI_PATH => 'acpiconf',
- KILL_PATH => 'killall',
- SHUTDOWN_PATH => 'shutdown',
- NOTIF_PATH => 'notify-send',
- EMACS_PATH => 'emacsclient'
+ SLOCK_PATH => 'slock',
+ XSCREENSAVER_PATH => 'xscreensaver-command',
+ ACPI_PATH => 'acpiconf',
+ KILL_PATH => 'killall',
+ SHUTDOWN_PATH => 'shutdown',
+ NOTIF_PATH => 'notify-send',
+ EMACS_PATH => 'emacsclient'
};
use constant LIST => [
'Lock screen',
@@ -46,12 +47,12 @@ sub action
chomp $var;
if ($var eq ${+LIST}[0]) {
- exec(SLOCK_PATH);
+ exec(XSCREENSAVER_PATH, '-lock');
}
elsif ($var eq ${+LIST}[1]) {
$pid = fork();
if (not $pid) {
- exec(SLOCK_PATH);
+ exec(XSCREENSAVER_PATH, '-lock');
}
else {
system(