From 3e8f0c71297ef8a0168ed2df98f373daaac8ed75 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 28 Jul 2022 16:41:46 +0200 Subject: CDE --- .config/alacritty/alacritty.yml | 16 ++++----- .config/env | 3 +- .config/mimeapps.list | 14 ++++++++ .config/x11/xinitrc | 1 + .dt/dtwmrc | 76 +++++++++++++++++++++++++++++++++++++++++ .local/bin/dmlog | 17 ++++----- 6 files changed, 110 insertions(+), 17 deletions(-) create mode 100644 .dt/dtwmrc 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 +{ + Mod41 root|window|icon f.goto_workspace "ws0" + Mod42 root|window|icon f.goto_workspace "ws1" + Mod43 root|window|icon f.goto_workspace "ws2" + Mod44 root|window|icon f.goto_workspace "ws3" + Mod45 root|window|icon f.goto_workspace "ws4" + Mod46 root|window|icon f.goto_workspace "ws5" + Mod47 root|window|icon f.goto_workspace "ws6" + Mod48 root|window|icon f.goto_workspace "ws7" + + Mod4 Shift1 window|icon f.workspace_presence "ws0" + Mod4 Shift2 window|icon f.workspace_presence "ws1" + Mod4 Shift3 window|icon f.workspace_presence "ws2" + Mod4 Shift4 window|icon f.workspace_presence "ws3" + Mod4 Shift5 window|icon f.workspace_presence "ws4" + Mod4 Shift6 window|icon f.workspace_presence "ws5" + Mod4 Shift7 window|icon f.workspace_presence "ws6" + Mod4 Shift8 window|icon f.workspace_presence "ws7" + + Mod4F1 root|window|icon f.exec "dtfile" + Mod4F2 root|window|icon f.exec "emacsclient -c" + Mod4F3 root|window|icon f.exec "iridium" + Mod4F4 root|window|icon f.exec "alacritty -e w3m" + Mod4F5 root|window|icon f.exec "alacritty -e ncmpc" + Mod4F6 root|window|icon f.exec "alacritty -e newsboat" + Mod4F7 root|window|icon f.exec "alacritty -e calcurse -C /home/jozan/.config/calcurse -D /home/jozan/.local/share/calcurse" + Mod4F8 root|window|icon f.exec "alacritty -e scli" + Mod4F9 root|window|icon f.exec "alacritty -e neomutt" + Mod4F10 root|window|icon f.exec "alacritty -e gotop" + Mod4F11 root|window|icon f.exec "alacritty -e htop" + Mod4F12 root|window|icon f.exec "alacritty -e top" + + Mod4 ShiftF3 root|window|icon f.exec "torify iridium" + Mod4 ShiftF6 root|window|icon f.exec "mpc prev" + Mod4 ShiftF7 root|window|icon f.exec "mpc toggle" + Mod4 ShiftF8 root|window|icon f.exec "mpc next" + Mod4 ShiftF9 root|window|icon f.exec "mpc stop" + Mod4 ShiftF10 root|window|icon f.exec "mixer-set toggle" + Mod4 ShiftF11 root|window|icon f.exec "mixer-set lower" + Mod4 ShiftF12 root|window|icon f.exec "mixer-set raise" + Mod4 ShiftDelete root|window|icon f.exec "mic" + + Mod4 CtrlF9 root|window|icon f.exec "dmkill" + Mod4 CtrlF10 root|window|icon f.exec "dmscrot" + Mod4 CtrlF11 root|window|icon f.exec "dmsearch" + Mod4 CtrlF12 root|window|icon f.exec "dmlog" + + Mod4 Ctrlp root|window|icon f.exec "dmpass" + Mod4 Shift Ctrlp root|window|icon f.exec "dmpass --full" + Mod4 End root|window|icon f.exec "ndate" + Mod4 Delete root|window|icon f.exec "shutup" + Mod4 ShiftDelete root|window|icon f.exec "mic" + Mod4BackSpace root|window|icon f.exec "dmpc" + Mod4 CtrlBackSpace root|window|icon f.exec "dmlog" + + Mod4Return root|window|icon f.exec "alacritty" + + MetaEscape root|window|icon f.next_key window + Mod4q window f.kill + Mod4f window f.maximize + Mod4s window f.normalize + Mod4w window f.move + Mod4m window f.move + Mod4 Shiftw window f.resize + Mod4 Shiftm window f.resize + Mod4 ShiftH window f.raise + Mod4 ShiftL window f.lower + Mod4h root|window|icon f.screen prev + Mod4l root|window|icon f.screen next + Mod4j root|window|icon f.next_key window + Mod4k root|window|icon f.prev_key window + Mod4p root|window|icon f.exec "dmenu_run -i -m 0" + Mod4 ShiftE root|window|icon f.quit_dtwm + Mod4 ShiftR 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( -- cgit v1.2.3