Update i3, sxhkd, picom and Xorg config
This commit is contained in:
@@ -42,7 +42,6 @@ mark-wmwin-focused = true;
|
|||||||
mark-ovredir-focused = true;
|
mark-ovredir-focused = true;
|
||||||
detect-rounded-corners = true;
|
detect-rounded-corners = true;
|
||||||
detect-client-opacity = true;
|
detect-client-opacity = true;
|
||||||
refresh-rate = 0;
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Window Type Setting
|
* Window Type Setting
|
||||||
|
|||||||
25
i3.org
25
i3.org
@@ -121,34 +121,36 @@ workspace_auto_back_and_forth yes
|
|||||||
* Application Specific
|
* Application Specific
|
||||||
** Open applications on specific workspaces
|
** Open applications on specific workspaces
|
||||||
#+begin_src conf
|
#+begin_src conf
|
||||||
assign[title="^Fig"] $ws6 # Matlab Figures
|
for_window [title="^Fig"] move to workspace $ws6
|
||||||
|
for_window [title="^HG_Peer"] move to workspace $ws6
|
||||||
for_window [title="^Fig"] layout tabbed
|
for_window [title="^Fig"] layout tabbed
|
||||||
assign[title="^HG_Peer"] $ws6 # Name of window when export figure with matlab
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+begin_src conf
|
#+begin_src conf
|
||||||
assign[class="^RDP"] $ws7 # Remote
|
# assign[class="^RDP"] 7 # Remote
|
||||||
|
for_window [class="^RDP"] move to workspace $ws7
|
||||||
for_window [class="^RDP"] layout tabbed
|
for_window [class="^RDP"] layout tabbed
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Open specific applications in floating mode
|
** Open specific applications in floating mode
|
||||||
#+begin_src conf
|
#+begin_src conf
|
||||||
|
for_window [class="floating"] floating enable
|
||||||
for_window [title="File Transfer*"] floating enable
|
for_window [title="File Transfer*"] floating enable
|
||||||
for_window [class="GParted"] floating enable border normal
|
for_window [class="GParted"] floating enable border normal
|
||||||
for_window [class="Lxappearance"] floating enable sticky enable border normal
|
for_window [class="Lxappearance"] floating enable sticky enable border normal
|
||||||
for_window [class="Pavucontrol"] floating enable
|
for_window [class="pwvucontrol"] floating enable
|
||||||
for_window [class="Arandr"] floating enable
|
for_window [class="Arandr"] floating enable
|
||||||
for_window [class="Simple-scan"] floating enable border normal
|
for_window [class="Simple-scan"] floating enable border normal
|
||||||
for_window [class="(?i)System-config-printer.py"] floating enable border normal
|
for_window [class="(?i)System-config-printer.py"] floating enable border normal
|
||||||
for_window [title="^Documentation -"] floating enable border normal
|
for_window [title="^Documentation -"] floating enable border normal
|
||||||
for_window [class="Yad"] floating enable
|
for_window [class="Yad"] floating enable
|
||||||
for_window [title="Bluetooth Devices"] floating enable
|
for_window [title="Bluetooth Devices"] floating enable
|
||||||
for_window [title="Simulink Library Browser"] floating enable
|
|
||||||
for_window [class="Floating"] floating enable, resize set 800 600, move position 1100 460
|
for_window [class="Floating"] floating enable, resize set 800 600, move position 1100 460
|
||||||
for_window [class="mpv"] floating enable # Size/Position is defined in mpv.conf
|
for_window [class="mpv"] floating enable # Size/Position is defined in mpv.conf
|
||||||
for_window [class="Sxiv"] floating enable, resize set 800 600, move position center
|
for_window [class="Nsxiv"] floating enable, resize set 800 600, move position center
|
||||||
for_window [class="Cropgui"] floating enable, resize set 800 600, move position center
|
for_window [class="Cropgui"] floating enable, resize set 800 600, move position center
|
||||||
for_window [title="khal"] floating enable, resize set 600 600, move position center
|
for_window [title="khal"] floating enable, resize set 600 600, move position center
|
||||||
|
for_window [class="jellyfin-tui"] floating enable, resize set 1200 800, move position center
|
||||||
for_window [title="ncmpcpp"] floating enable, resize set 800 400, move position center
|
for_window [title="ncmpcpp"] floating enable, resize set 800 400, move position center
|
||||||
for_window [title="stig"] floating enable, resize set 800 400, move position center
|
for_window [title="stig"] floating enable, resize set 800 400, move position center
|
||||||
for_window [title="Sensors"] floating enable, resize set 800 400, move position center
|
for_window [title="Sensors"] floating enable, resize set 800 400, move position center
|
||||||
@@ -158,6 +160,14 @@ for_window [title="Xournal"] floating enable, resize set 1100 750, move position
|
|||||||
for_window [title="esrf-phonebook"] floating enable, resize set 1400 400, move position center
|
for_window [title="esrf-phonebook"] floating enable, resize set 1400 400, move position center
|
||||||
for_window [title="^zoom$" class="[zoom]*"] floating enable
|
for_window [title="^zoom$" class="[zoom]*"] floating enable
|
||||||
for_window [title="F3D"] floating enable, resize set 800 600, move position center
|
for_window [title="F3D"] floating enable, resize set 800 600, move position center
|
||||||
|
# Simulink
|
||||||
|
for_window [title="Simulink Library Browser"] floating enable
|
||||||
|
for_window [title="^Block Parameters:.*"] floating enable, move position center
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Others
|
||||||
|
#+begin_src conf
|
||||||
|
no_focus [title="zoom_linux_float_message_reminder"]
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Scratchpad
|
* Scratchpad
|
||||||
@@ -229,7 +239,6 @@ bindsym $mod+6 workspace 6
|
|||||||
bindsym $mod+7 workspace 7
|
bindsym $mod+7 workspace 7
|
||||||
bindsym $mod+8 workspace 8
|
bindsym $mod+8 workspace 8
|
||||||
bindsym $mod+9 workspace 9
|
bindsym $mod+9 workspace 9
|
||||||
bindsym $mod+0 workspace 10
|
|
||||||
|
|
||||||
bindsym $mod+ctrl+1 move container to workspace 1
|
bindsym $mod+ctrl+1 move container to workspace 1
|
||||||
bindsym $mod+ctrl+2 move container to workspace 2
|
bindsym $mod+ctrl+2 move container to workspace 2
|
||||||
@@ -240,7 +249,6 @@ bindsym $mod+ctrl+6 move container to workspace 6
|
|||||||
bindsym $mod+ctrl+7 move container to workspace 7
|
bindsym $mod+ctrl+7 move container to workspace 7
|
||||||
bindsym $mod+ctrl+8 move container to workspace 8
|
bindsym $mod+ctrl+8 move container to workspace 8
|
||||||
bindsym $mod+ctrl+9 move container to workspace 9
|
bindsym $mod+ctrl+9 move container to workspace 9
|
||||||
bindsym $mod+ctrl+0 move container to workspace 10
|
|
||||||
|
|
||||||
bindsym $mod+Shift+1 move container to workspace 1; workspace 1
|
bindsym $mod+Shift+1 move container to workspace 1; workspace 1
|
||||||
bindsym $mod+Shift+2 move container to workspace 2; workspace 2
|
bindsym $mod+Shift+2 move container to workspace 2; workspace 2
|
||||||
@@ -251,7 +259,6 @@ bindsym $mod+Shift+6 move container to workspace 6; workspace 6
|
|||||||
bindsym $mod+Shift+7 move container to workspace 7; workspace 7
|
bindsym $mod+Shift+7 move container to workspace 7; workspace 7
|
||||||
bindsym $mod+Shift+8 move container to workspace 8; workspace 8
|
bindsym $mod+Shift+8 move container to workspace 8; workspace 8
|
||||||
bindsym $mod+Shift+9 move container to workspace 9; workspace 9
|
bindsym $mod+Shift+9 move container to workspace 9; workspace 9
|
||||||
bindsym $mod+Shift+0 move container to workspace 10; workspace 10
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Preselect
|
** Preselect
|
||||||
|
|||||||
55
sxhkd.org
55
sxhkd.org
@@ -56,15 +56,15 @@ alt + BackSpace
|
|||||||
#+begin_src conf
|
#+begin_src conf
|
||||||
# Mute/Unmute
|
# Mute/Unmute
|
||||||
XF86AudioMute
|
XF86AudioMute
|
||||||
amixer -D pulse sset Master toggle
|
pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||||
|
|
||||||
# Increase Volume
|
# Increase Volume
|
||||||
XF86AudioRaiseVolume
|
XF86AudioRaiseVolume
|
||||||
amixer -D pulse sset Master 2%+
|
pactl -- set-sink-volume 0 +2%
|
||||||
|
|
||||||
# Decrease Volume
|
# Decrease Volume
|
||||||
XF86AudioLowerVolume
|
XF86AudioLowerVolume
|
||||||
amixer -D pulse sset Master 2%-
|
pactl -- set-sink-volume 0 -2%
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Backlight
|
** Backlight
|
||||||
@@ -82,25 +82,11 @@ XF86MonBrightnessDown
|
|||||||
#+begin_src conf
|
#+begin_src conf
|
||||||
# Play/Pause music
|
# Play/Pause music
|
||||||
super + period
|
super + period
|
||||||
mpc toggle
|
playerctl --player=jellyfin-tui play-pause
|
||||||
|
|
||||||
# Previous/Next music
|
# Previous/Next music
|
||||||
super + {greater,less}
|
super + {greater,less}
|
||||||
mpc {next,prev}
|
playerctl --player=jellyfin-tui {next,previous}
|
||||||
#+end_src
|
|
||||||
|
|
||||||
#+begin_src conf
|
|
||||||
# Play/Pause music
|
|
||||||
XF86AudioPlay
|
|
||||||
mpc toggle
|
|
||||||
|
|
||||||
# Next music
|
|
||||||
XF86AudioNext
|
|
||||||
mpc next
|
|
||||||
|
|
||||||
# Previous music
|
|
||||||
XF86AudioPrev
|
|
||||||
mpc prev
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Print Screen
|
** Print Screen
|
||||||
@@ -141,9 +127,13 @@ super + z
|
|||||||
super + Return
|
super + Return
|
||||||
$TERMINAL
|
$TERMINAL
|
||||||
|
|
||||||
|
# Start Terminal (floating)
|
||||||
|
super + shift + Return
|
||||||
|
$TERMINAL --class floating
|
||||||
|
|
||||||
# File Manager
|
# File Manager
|
||||||
super + o
|
super + o
|
||||||
$TERMINAL -e tmux new-session -A -s ranger ranger
|
$TERMINAL -e tmux new-session -A -s yazi yazi
|
||||||
|
|
||||||
# Unicode Insert
|
# Unicode Insert
|
||||||
super + u
|
super + u
|
||||||
@@ -158,6 +148,9 @@ super + m
|
|||||||
$TERMINAL -e tmux new-session -A -s neomutt neomutt
|
$TERMINAL -e tmux new-session -A -s neomutt neomutt
|
||||||
|
|
||||||
# Emacs Client
|
# Emacs Client
|
||||||
|
super + shift + e
|
||||||
|
emacs
|
||||||
|
|
||||||
super + e
|
super + e
|
||||||
emacsclient -create-frame --alternate-editor=""
|
emacsclient -create-frame --alternate-editor=""
|
||||||
#+end_src
|
#+end_src
|
||||||
@@ -170,15 +163,19 @@ super + shift + b
|
|||||||
|
|
||||||
# Calculator
|
# Calculator
|
||||||
super + shift + c
|
super + shift + c
|
||||||
rofi -show calc -modi calc -no-show-match -no-sort -no-persist-history
|
rofi -show calc -modi calc -no-show-match -no-sort -calc-command "echo -n '\{result\}' | xclip -selection clipboard"
|
||||||
|
|
||||||
# Sound Manager
|
# Sound Manager
|
||||||
super + shift + s
|
super + shift + s
|
||||||
pavucontrol
|
pwvucontrol
|
||||||
|
|
||||||
# Passwords
|
# Passwords
|
||||||
super + shift + p
|
super + shift + p
|
||||||
rofi-pass
|
rofi-pass
|
||||||
|
|
||||||
|
# Fill ESRF password
|
||||||
|
super + shift + f
|
||||||
|
xdotool key $(pass esrf.fr/dehaeze | head -n 1 | sed 's/./& /g' | sed 's/}/braceright/g')
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* =Super + Space= - Command Mode
|
* =Super + Space= - Command Mode
|
||||||
@@ -189,7 +186,7 @@ super + space ; c
|
|||||||
|
|
||||||
# pcmanfm: GUI file manager
|
# pcmanfm: GUI file manager
|
||||||
super + space ; o
|
super + space ; o
|
||||||
nautilus;
|
pcmanfm;
|
||||||
|
|
||||||
# Run another instance of Neomutt in read-only mode
|
# Run another instance of Neomutt in read-only mode
|
||||||
super + space ; m
|
super + space ; m
|
||||||
@@ -201,19 +198,11 @@ super + space ; w
|
|||||||
|
|
||||||
# Music with ncmpcpp
|
# Music with ncmpcpp
|
||||||
super + space ; p
|
super + space ; p
|
||||||
$TERMINAL -e tmux new-session -A -s ncmpcpp ncmpcpp
|
$TERMINAL --class jellyfin-tui -e tmux new-session -A -s jellyfin jellyfin-tui
|
||||||
|
|
||||||
# Torrend Client with stig
|
# TODO Torrent Client with stig
|
||||||
super + space ; t
|
super + space ; t
|
||||||
$TERMINAL -e tmux new-session -A -s stig stig
|
$TERMINAL -e tmux new-session -A -s stig stig
|
||||||
|
|
||||||
# Default Browser
|
|
||||||
super + space ; i
|
|
||||||
$BROWSER;
|
|
||||||
|
|
||||||
# Emacs
|
|
||||||
super + space ; e
|
|
||||||
emacsclient -create-frame --alternate-editor=""
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* I3 related
|
* I3 related
|
||||||
|
|||||||
43
xconfig.org
43
xconfig.org
@@ -60,7 +60,16 @@ Xft.rgba: rgb
|
|||||||
** Cursor
|
** Cursor
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
Xcursor.theme: Breeze
|
Xcursor.theme: Breeze
|
||||||
Xcursor.size: 0
|
Xcursor.size: 24
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
** SXIV
|
||||||
|
#+BEGIN_SRC css
|
||||||
|
Nsxiv.window.background: #FFFFFF
|
||||||
|
Nsxiv.window.foreground: #d5c4a1
|
||||||
|
Nsxiv.bar.font: Hack-10
|
||||||
|
Nsxiv.bar.background: #fbf1c7
|
||||||
|
Nsxiv.bar.foreground: #32302f
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* =xinitrc=
|
* =xinitrc=
|
||||||
@@ -81,6 +90,20 @@ Set =DISPLAY= for =dunst= when started with =systemd=.
|
|||||||
systemctl --user import-environment DISPLAY
|
systemctl --user import-environment DISPLAY
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Run some default scripts:
|
||||||
|
#+begin_src bash
|
||||||
|
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
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
#+begin_src bash
|
||||||
|
[ -f ~/.xprofile ] && . ~/.xprofile
|
||||||
|
#+end_src
|
||||||
|
|
||||||
Merge the defaults:
|
Merge the defaults:
|
||||||
#+BEGIN_SRC bash
|
#+BEGIN_SRC bash
|
||||||
userresources=$HOME/.Xresources
|
userresources=$HOME/.Xresources
|
||||||
@@ -105,20 +128,6 @@ if [ -f "$usermodmap" ]; then
|
|||||||
fi
|
fi
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Run some default scripts:
|
|
||||||
#+begin_src bash
|
|
||||||
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
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
#+begin_src bash
|
|
||||||
[ -f ~/.xprofile ] && . ~/.xprofile
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
exec i3
|
exec i3
|
||||||
#+end_src
|
#+end_src
|
||||||
@@ -169,13 +178,13 @@ blueman-applet &
|
|||||||
udiskie --notify --automount --tray &
|
udiskie --notify --automount --tray &
|
||||||
|
|
||||||
# Japanese input
|
# Japanese input
|
||||||
fcitx -d &
|
# fcitx -d &
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Manually start =mopidy= as it seems to not start automatically:
|
Manually start =mopidy= as it seems to not start automatically:
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
# Mopidy
|
# Mopidy
|
||||||
mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null 2>&1 &
|
~/.local/soft/mopidy-jellyfin/env/bin/mopidy >/tmp/mopidy.log 2>&1 &
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Finally, run SXHKD for the key bindings:
|
Finally, run SXHKD for the key bindings:
|
||||||
|
|||||||
Reference in New Issue
Block a user