diff options
| author | Mitsuo Tokumori <[email protected]> | 2024-09-11 04:25:38 +0900 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2024-09-11 04:25:38 +0900 |
| commit | 37ff7062874b72bafa99afe661f42653565ed511 (patch) | |
| tree | 60372bf7fdb94c9034c7d1cc5a17cd7df526c4fc /config/xorg | |
| parent | dca319b8d9d221f1aaf3a00ee457d202096c66ac (diff) | |
| download | dotfiles-37ff7062874b72bafa99afe661f42653565ed511.tar.gz dotfiles-37ff7062874b72bafa99afe661f42653565ed511.tar.bz2 dotfiles-37ff7062874b72bafa99afe661f42653565ed511.zip | |
RESTRUCTURE. Replicate relative paths in public/
Diffstat (limited to 'config/xorg')
| -rw-r--r-- | config/xorg/xbindkeysrc | 205 | ||||
| -rw-r--r-- | config/xorg/xinitrc | 92 |
2 files changed, 0 insertions, 297 deletions
diff --git a/config/xorg/xbindkeysrc b/config/xorg/xbindkeysrc deleted file mode 100644 index 7acb6fe..0000000 --- a/config/xorg/xbindkeysrc +++ /dev/null @@ -1,205 +0,0 @@ -# For the benefit of emacs users: -*- shell-script -*- -########################### -# xbindkeys configuration # -########################### -# -# Version: 1.8.7 -# -# If you edit this file, do not forget to uncomment any lines -# that you change. -# The pound(#) symbol may be used anywhere for comments. -# -# To specify a key, you can use 'xbindkeys --key' or -# 'xbindkeys --multikey' and put one of the two lines in this file. -# -# The format of a command line is: -# "command to start" -# associated key -# -# -# A list of keys is in /usr/include/X11/keysym.h and in -# /usr/include/X11/keysymdef.h -# The XK_ is not needed. -# -# List of modifier: -# Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock), -# Mod3 (CapsLock), Mod4, Mod5 (Scroll). -# - -# The release modifier is not a standard X modifier, but you can -# use it if you want to catch release events instead of press events - -# By defaults, xbindkeys does not pay attention with the modifiers -# NumLock, CapsLock and ScrollLock. -# Uncomment the lines above if you want to pay attention to them. - -#keystate_numlock = enable -#keystate_capslock = enable -#keystate_scrolllock= enable - -# Examples of commands: - -#"xbindkeys_show" -# control+shift + q - -## set directly keycode (here control + f with my keyboard) -#"xterm" -# c:41 + m:0x4 - -## specify a mouse button -#"xterm" -# control + b:2 - -#"xterm -geom 50x20+20+20" -# Shift+Mod2+alt + s -# -## set directly keycode (here control+alt+mod2 + f with my keyboard) -#"xterm" -# alt + c:0x29 + m:4 + mod2 -# -## Control+Shift+a release event starts rxvt -#"rxvt" -# release+control+shift + a -# -## Control + mouse button 2 release event starts rxvt -#"rxvt" -# Control + b:2 + Release - - -# My shortcuts -# ============ - -# See all mappings in a neat table here: $HOME/docs/notes/keybindings.ods - -# Modifier scheme (order: Control,Shift,Alt(Mod1),Super(Mod4)): -# * app-specific: -# * Control, Control+Shift, Contrl+Alt (*) -# * Linux & WM (dwm): -# * Alt, Control+Alt (*), Shift+Alt -# * user-defined: -# * Mod4 (application launch & audio control) -# * Shift+Mod4 (brightness control & audio control) -# * Control+Mod4 (unused) -# * Alt+Mod4 (unused) -# * unused (4 finger shortcuts): -# * Control+Shift+Alt, Control+Shift+Mod4, Control+Alt+Mod4, Shift+Alt+Mod4 -# * unused (5 finger shortcut): -# * Control+Shift+Alt+Mod4 - -# System -# ------ - -# WIP: shutdown and reboot require root privileges, so they won't work like this -"shutdown 0" - Control+Shift+Alt+Mod4 + s - -"reboot" - Control+Shift+Alt+Mod4 + r - -"slock" - Control+Alt + l - -"audio_control.sh inc" - Mod4 + 0 - -"audio_control.sh dec" - Mod4 + 9 - -"audio_control.sh mutetoggle" - Mod4 + m - -"audio_control.sh micinc" - Mod4 + 8 - -"audio_control.sh micdec" - Mod4 + 7 - -"audio_control.sh deafentoggle" - Mod4 + n - -"brightness_control.sh inc" - Shift+Mod4 + 0 - -"brightness_control.sh dec" - Shift+Mod4 + 9 - -"network_control.sh wifitoggle" - Shift+Mod4 + c - -"network_control.sh bluetoothtoggle" - Shift+Mod4 + v - -"network_control.sh isolatetoggle" - Shift+Mod4 + b - -# Suckless desktop -# -------------------- - -"dmenu-webshortcuts.sh" - Alt + w - -"dmenu-emojicopy.sh" - Alt + e - -"screenshot.sh" - Print - -"screenshot.sh screen" - Shift + Print - -"screenshot_ocr.sh" - Mod4 + s - -# This key combination (Mod4 + Space) seems to break xbindkeys -# See Also: -# https://bbs.archlinux.org/viewtopic.php?id=226182 -#"audio_control.sh dec" -# Mod4 + Space - -"input_control.sh en" - Mod4 + k - -"input_control.sh es" - Mod4 + l - -"input_control.sh ja" - Mod4 + j - -# Launch applications (super + key) -# --------------------------------- - -"st -e tmux" - Mod4 + Return - -"st" - Shift+Mod4 + Return - -"pcmanfm" - Mod4 + e - -"firefox" - Mod4 + w - -"thunderbird" - Mod4 + t - -"goldendict" - Mod4 + g - -"zeal" - Mod4 + h - -# Media control -# ------------- - -"playerctl play-pause" - Mod4 + Down - -"playerctl stop" - Mod4 + Up - -"playerctl next" - Mod4 + Right - -"playerctl previous" - Mod4 + Left diff --git a/config/xorg/xinitrc b/config/xorg/xinitrc deleted file mode 100644 index cee8050..0000000 --- a/config/xorg/xinitrc +++ /dev/null @@ -1,92 +0,0 @@ -#!/bin/sh - -# This first part is copied from /etc/X11/xinit/xinitrc -# -# Start X with `$ xstart` -# See startx(1) and xinit(1) - - -userresources=$HOME/.Xresources -usermodmap=$HOME/.Xmodmap -sysresources=/etc/X11/xinit/.Xresources -sysmodmap=/etc/X11/xinit/.Xmodmap - -# merge in defaults and keymaps - -if [ -f $sysresources ]; then - xrdb -merge $sysresources -fi - -if [ -f $sysmodmap ]; then - xmodmap $sysmodmap -fi - -if [ -f "$userresources" ]; then - xrdb -merge "$userresources" -fi - -if [ -f "$usermodmap" ]; then - xmodmap "$usermodmap" -fi - -# Load necessary X11 configuration - -if [ -d /etc/X11/xinit/xinitrc.d ] ; then - for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do - [ -x "$f" ] && . "$f" - done - unset f -fi - -# Setup and start Desktop Environment -# ====================================================================== - -# Thanks: https://bbs.archlinux.org/viewtopic.php?pid=1565341#p1565341 -run_after_dwm() { - # Bind the right Alt key to Mod4 (for DWM) - # https://wiki.archlinux.org/title/Dwm#Bind_the_right_Alt_key_to_Mod4 - # xmodmap -pke | grep Alt_R - xmodmap -e "keycode 108 = Super_L" - xmodmap -e "remove mod1 = Super_L" -} - -# fcitx (CJK and emoji input method) -export GTK_IM_MODULE=fcitx -export QT_IM_MODULE=fcitx -export XMODIFIERS=@im=fcitx - -xrandr --dpi 144 # Original mac: 72, stupid windows: 96 pulse15: 188 -setxkbmap -option caps:escape -laptop-xinput_setup.sh -laptop-xrandr.sh -xbindkeys - -#autostart="mpd xcompmgr dunst unclutter pipewire remapd" -#autostart="dunst unclutter" -# -#for program in $autostart; do -# pidof -sx "$program" || "$program" & -#done >/dev/null 2>&1 - -# Start twm -#twm & -#xclock -geometry 50x50-1+1 & -#xterm -geometry 80x50+494+51 & -#xterm -geometry 80x20+494-0 & -#exec xterm -geometry 80x66+0+0 -name login - -# Start Plasma -# Start KDE Plasma (DE) -#export DESKTOP_SESSION=plasma -#exec startplasma-x11 - -# Start xfce4 -#startxfce4 - -# Start dwm -unclutter & -xautolock -time 10 -locker slock & -dwmblocks & -setbg.sh & -(sleep 5 && run_after_dwm) & -exec dwm |
