add cdm config

This commit is contained in:
altffour 2020-12-14 10:23:22 +03:00
parent 62211ddbfd
commit ccb3881b29
No known key found for this signature in database
GPG Key ID: B4ADFA86EDF5CCE9
5 changed files with 95 additions and 0 deletions

68
.config/cdm/cdmrc Normal file
View File

@ -0,0 +1,68 @@
#!/bin/bash
#
# Example config file for cdm(1).
# Values set here is the default as in cdm(1).
# List of programs, commands with whitespaces should be quoted or escaped.
# If unset, all sessions in /etc/X11/Sessions or /usr/share/xsessions are
# offered as choices.
#
# (An example:)
binlist=(
'~/.config/cdm/dwm-cdm' # Launch dwm,
'~/.config/cdm/xmonad-cdm' # Launch xmonad desktop,
'/bin/bash --login' # Execute your Shell,
'reboot' # Reboot
'shutdown 0' # Shutdown
)
# List all program display names, one-by-one matched with $binlist.
# Names with whitespaces should be quoted or escaped.
#
# (Continued example:)
namelist=('dwm' 'xmonad' 'Console' 'Reboot' 'Shutdown')
# Type of the programs, one-by-one matched with $binlist.
# `C' for *C*onsole programs, which would be `exec'ed.
# `X' for *X* programs, which would be run with cdm-xlaunch(1).
#
# (Continued example:)
flaglist=(C C C C C)
# Style for the cdm dialog, which is printed with dialog(1).
# Default to unset, causing dialog(1) to use the system wide default.
# See /usr/share/doc/cdm/themes for some nice choices.
dialogrc=/usr/share/doc/cdm/themes/blackandwhite
# Index of the first item in the menu.
countfrom=0
# Set default display.
display=0
# Where should the first X tty be spawned?
# special value `keep' causes to run X in current tty.
xtty=1
# Should cdm(1) stick to the specified display?
locktty=no
# Use ConsoleKit for X session?
consolekit=yes
# Timeout for waiting for X session to register with ConsoleKit.
cktimeout=30
# Additional arguments to pass to X server, which is usually called as:
# /usr/bin/X :$display "${serverargs[@]}" vt$((xtty+display))
# Arguments with whitespaces should be quoted or escaped.
serverargs=(-nolisten tcp)
# Alternative method of calling startx(/setsid). Should only be set if cdm
# does not start X as expected (bash -x shows call to setsid startx, but for
# no apparent reason does not start X).
# Only provided in the hope it may be useful, not a guaranteed fix.
altstartx=no
# Destination for stdout and stderr output from startx.
startxlog=/dev/null

2
.config/cdm/dwm-cdm Executable file
View File

@ -0,0 +1,2 @@
cp ~/.config/cdm/dwm-xinit ~/.config/X11/xinitrc
startx ~/.config/X11/xinitrc

9
.config/cdm/dwm-xinit Normal file
View File

@ -0,0 +1,9 @@
exec feh --no-fehbg --bg-fill ~/proj/sysconf/wallpapers/wallpaper &
exec statusbar &
exec picom --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 dwm

2
.config/cdm/xmonad-cdm Executable file
View File

@ -0,0 +1,2 @@
cp ~/.config/cdm/xmonad-xinit ~/.config/X11/xinitrc
startx ~/.config/X11/xinitrc

14
.config/cdm/xmonad-xinit Normal file
View File

@ -0,0 +1,14 @@
#exec feh --no-fehbg --bg-fill /home/dizzy/proj/sysconf/wallpapers/wallpaper &
exec xsetbg ~/proj/sysconf/wallpapers/wallpaper &
exec rm -r ~/.cache/wal &
exec wal -i ~/proj/sysconf/wallpapers/wallpaper &&
exec betterscreen -u ~/proj/sysconf/wallpapers/wallpaper &
exec picom --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 xsetroot -cursor_name left_ptr &
exec xmodmap ~/.config/Xmodmap &
exec dbus-launch xmonad