Update default configs

This commit is contained in:
2024-09-15 11:07:51 +02:00
parent b5ee11e126
commit 0d8cbde369
9 changed files with 65 additions and 159 deletions

View File

@@ -19,7 +19,7 @@ font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec terminal
bindsym $mod+Return exec urxvt
# kill focused window
bindsym $mod+Shift+Q kill
@@ -27,8 +27,9 @@ bindsym $mod+Shift+Q kill
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run
# Lock screen
bindsym $mod+Mod1+del exec xscreensaver-command -lock
# Lock screen
bindsym $mod+Mod1+l exec xscreensaver-command -lock
#bindsym $mod+Mod1+l exec i3lock -c cccccc -i ~/Pictures/bg.png
# change focus
bindsym $mod+j focus left
@@ -93,16 +94,28 @@ bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
# move focused container to workspace
bindsym $mod+Shift+plus move workspace 1
bindsym $mod+Shift+quotedbl move workspace 2
bindsym $mod+Shift+asterisk move workspace 3
bindsym $mod+Shift+ccedilla move workspace 4
# fr_CH layout
#bindsym $mod+Shift+plus move workspace 1
#bindsym $mod+Shift+quotedbl move workspace 2
#bindsym $mod+Shift+asterisk move workspace 3
#bindsym $mod+Shift+ccedilla move workspace 4
#bindsym $mod+Shift+percent move workspace 5
#bindsym $mod+Shift+ampersand move workspace 6
#bindsym $mod+Shift+slash move workspace 7
#bindsym $mod+Shift+parenleft move workspace 8
#bindsym $mod+Shift+parenright move workspace 9
#bindsym $mod+Shift+equal move workspace 10
# us_en Layout
bindsym $mod+Shift+exclam move workspace 1
bindsym $mod+Shift+at move workspace 2
bindsym $mod+Shift+numbersign move workspace 3
bindsym $mod+Shift+dollar move workspace 4
bindsym $mod+Shift+percent move workspace 5
bindsym $mod+Shift+ampersand move workspace 6
bindsym $mod+Shift+slash move workspace 7
bindsym $mod+Shift+parenleft move workspace 8
bindsym $mod+Shift+parenright move workspace 9
bindsym $mod+Shift+equal move workspace 10
bindsym $mod+Shift+asciicircum move workspace 6
bindsym $mod+Shift+ampersand move workspace 7
bindsym $mod+Shift+asterisk move workspace 8
bindsym $mod+Shift+parenleft move workspace 9
bindsym $mod+Shift+parenright move workspace 10
# reload the configuration file
bindsym $mod+Shift+C reload
@@ -153,14 +166,19 @@ bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
exec xscreensaver
exec eval $(cat ~/.fehbg)
#exec i3status | i3bar --dock=top --font '-misc-liberation mono-medium-r-*-*-*-*-*-*-*-*-iso8859-*'
exec xscreensaver -no-splash
exec alsactl restore
exec sh ~/.fehbg
#If you have several keyboard layout, to enable switching between them
#exec setxkbmap -option 'grp:menu_toggle' 'us,ch(fr)'
bar {
status_command i3status
position top
position top
workspace_buttons yes
font -misc-liberation mono-medium-r-*-*-*-*-*-*-*-*-iso8859-*
#font -misc-liberation mono-medium-r-*-*-*-*-*-*-*-*-iso8859-*
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
colors {
background #333333

View File

@@ -1,123 +1,17 @@
set -g default-terminal "screen-256color"
set -g status-utf8 on
#set -g default-terminal "screen-255color"
bind M source-file ~/.tmux/mac.session
bind L source-file ~/.tmux/linux.session
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# Highlight pane with activity
setw -g monitor-activity on
# THEME
set -g status-bg black
set -g status-fg white
set -g status-bg white
set -g status-fg black
set -g status-left-length 30
set -g status-right-length 60
set -g status-left ' #[default]'
set -g status-right '#[fg=colour235]Inbox: #[fg=yellow]#(ls ~/Mails/INBOX/new | wc -l | tr -d " ")#[fg=colour235]/#(ls ~/Mails/INBOX/cur ~/Mails/INBOX/new | wc -l | tr -d " ") | Bugzilla: #[fg=yellow]#(ls ~/Mails/bugzilla/new | wc -l | tr -d " ")#[fg=colour235]/#(ls ~/Mails/bugzilla/cur ~/Mails/bugzilla/new| wc -l | tr -d " ") | ml: #[fg=yellow]#(ls ~/Mails/lists/new | wc -l | tr -d " ")#[fg=colour235]/#(ls ~/Mails/lists/cur ~/Mails/lists/new | wc -l | tr -d " ")#[default] #[fg=colour198]%H:%M#[default]'
set -g status-left '#[fg=black] [#S] #[default]'
set -g status-right '#[fg=black]%H:%M#[default] '
setw -g window-status-format '#[fg=colour235]#I #[fg=white]#W#[default] '
#FIXME: I want to be able to use: ⮁
setw -g window-status-current-format '#[bg=white,fg=black]⮀ #W #[bg=black,fg=white]⮀'
######################### SCREEN BINDINGS ######################
# $Id: screen-keys.conf,v 1.7 2010/07/31 11:39:13 nicm Exp $
#
# By Nicholas Marriott. Public domain.
#
# This configuration file binds many of the common GNU screen key bindings to
# appropriate tmux key bindings. Note that for some key bindings there is no
# tmux analogue and also that this set omits binding some commands available in
# tmux but not in screen.
#
# Note this is only a selection of key bindings and they are in addition to the
# normal tmux key bindings. This is intended as an example not as to be used
# as-is.
# Set the prefix to ^A.
unbind C-b
set -g prefix ^A
bind a send-prefix
# Bind appropriate commands similar to screen.
# lockscreen ^X x
unbind ^X
bind ^X lock-server
unbind x
bind x lock-server
# screen ^C c
unbind ^C
bind ^C new-window
bind c new-window
# detach ^D d
unbind ^D
bind ^D detach
# displays *
unbind *
bind * list-clients
# next ^@ ^N sp n
unbind ^@
bind ^@ next-window
unbind ^N
bind ^N next-window
unbind " "
bind " " next-window
unbind n
bind n next-window
# title A
unbind A
bind A command-prompt "rename-window %%"
# other ^A
unbind ^A
bind ^A last-window
# prev ^H ^P p ^?
unbind ^H
bind ^H previous-window
unbind ^P
bind ^P previous-window
unbind p
bind p previous-window
unbind BSpace
bind BSpace previous-window
# windows ^W w
unbind ^W
bind ^W list-windows
unbind w
bind w list-windows
# quit \
unbind \
bind \ confirm-before "kill-server"
# kill K k
unbind K
bind K confirm-before "kill-window"
unbind k
bind k confirm-before "kill-window"
# redisplay ^L l
unbind ^L
bind ^L refresh-client
unbind l
bind l refresh-client
# split -v |
unbind |
bind | split-window
# :kB: focus up
unbind Tab
bind Tab select-pane -t:.+
unbind BTab
bind BTab select-pane -t:.-
# " windowlist -b
unbind '"'
bind '"' choose-window
setw -g window-status-format '#[fg=blue]#I#[fg=black]:#W#[default]'
setw -g window-status-current-format '#[bg=black,fg=white]#I:#W#[default]'