From 56a242f1074ff07593bad47bd50d1b6a4aa8a10b Mon Sep 17 00:00:00 2001 From: Jisu Kim Date: Mon, 17 Aug 2020 07:15:39 +0900 Subject: [PATCH] =?UTF-8?q?tmux=20=ED=85=8C=EB=A7=88=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux/alacritty/alacritty.yml | 2 +- linux/dconf/user | Bin 10716 -> 10716 bytes linux/pam_environment | 1 + linux/sxhkd/sxhkdrc | 4 +- .../user/default.target.wants/tmux.service | 1 + linux/systemd/user/tmux.service | 17 +++++ mapping.ts | 7 +- tmux/themes/tomorrow.tmux | 71 ++++++++++++++++++ 8 files changed, 97 insertions(+), 6 deletions(-) create mode 120000 linux/systemd/user/default.target.wants/tmux.service create mode 100644 linux/systemd/user/tmux.service create mode 100644 tmux/themes/tomorrow.tmux diff --git a/linux/alacritty/alacritty.yml b/linux/alacritty/alacritty.yml index a387321..e90fb01 100644 --- a/linux/alacritty/alacritty.yml +++ b/linux/alacritty/alacritty.yml @@ -307,7 +307,7 @@ colors: # # Window opacity as a floating point number from `0.0` to `1.0`. # The value `0.0` is completely transparent and `1.0` is opaque. -background_opacity: 0.6 +background_opacity: 0.75 #selection: #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" diff --git a/linux/dconf/user b/linux/dconf/user index 48d08e862e8760c43628bb3bfd7a9dc4a5f02e67..2a511a2ceb3ed479383218bfdcaad3846be1f50c 100644 GIT binary patch delta 31 ncmcZ;d?$E=fFx@jI|IXq$)b|C8CPxoD5=cD$hKKj?Km?4xpxYr delta 31 ncmcZ;d?$E=fF$b~W(I~!lSL(OGcMZvQBs+Qkz=!{+Hqz8y^9LU diff --git a/linux/pam_environment b/linux/pam_environment index 94f914e..a73b111 100644 --- a/linux/pam_environment +++ b/linux/pam_environment @@ -6,6 +6,7 @@ GTK_THEME DEFAULT=Lumiere GTK2_RC_FILES DEFAULT=/usr/share/themes/Lumiere/gtk-2.0/gtkrc BROWSER DEFAULT=google-chrome-stable +BACKLIGHT DEFAULT=intel_backlight QT_STYLE_OVERRIDE DEFAULT=GTK+ QT_QPA_PLATFORMTHEME DEFAULT=gtk2 diff --git a/linux/sxhkd/sxhkdrc b/linux/sxhkd/sxhkdrc index ca61890..3298b76 100644 --- a/linux/sxhkd/sxhkdrc +++ b/linux/sxhkd/sxhkdrc @@ -143,10 +143,10 @@ XF86AudioRaiseVolume pactl set-sink-volume @DEFAULT_SINK@ +5% XF86MonBrightnessUp - xbacklight -ctrl gmux_backlight -inc 5 + xbacklight -ctrl $BACKLIGHT -inc 5 XF86MonBrightnessDown - xbacklight -ctrl gmux_backlight -dec 5 + xbacklight -ctrl $BACKLIGHT -dec 5 XF86KbdBrightnessUp xbacklight -ctrl smc::kbd_backlight -inc 10 diff --git a/linux/systemd/user/default.target.wants/tmux.service b/linux/systemd/user/default.target.wants/tmux.service new file mode 120000 index 0000000..3aad053 --- /dev/null +++ b/linux/systemd/user/default.target.wants/tmux.service @@ -0,0 +1 @@ +/home/vbalien/.config/systemd/user/tmux.service \ No newline at end of file diff --git a/linux/systemd/user/tmux.service b/linux/systemd/user/tmux.service new file mode 100644 index 0000000..c6fc087 --- /dev/null +++ b/linux/systemd/user/tmux.service @@ -0,0 +1,17 @@ +[Unit] +Description=tmux default session (detached) +Documentation=man:tmux(1) + +[Service] +Type=forking +Environment=DISPLAY=:0 +ExecStart=/usr/bin/tmux new-session -d + +ExecStop=/home/vbalien/.tmux/plugins/tmux-resurrect/scripts/save.sh +ExecStop=/usr/bin/tmux kill-server +KillMode=none + +RestartSec=2 + +[Install] +WantedBy=default.target diff --git a/mapping.ts b/mapping.ts index fbeda43..29845a5 100644 --- a/mapping.ts +++ b/mapping.ts @@ -7,16 +7,16 @@ const common: DotOption = { }; const linux: DotOption = { - hostname: ["office2"], + hostname: ["office2", "T490s"], install: [ `sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"`, "yay -Syu", `yay -S --needed - sxhkd bspwm rofi dunst-git visual-studio-code-bin + sxhkd bspwm rofi-git dunst-git visual-studio-code-bin picom-ibhagwan-git alacritty zsh maim gtk-engine-murrine xclip xdotool google-chrome pulseaudio polybar-git gnome-keyring pasystray polkit-gnome nerd-fonts-terminus - gnome-settings-daemon nitrogen dex sassc ttf-nanum + gnome-settings-daemon feh dex sassc ttf-nanum acpilight fcitx5 fcitx5-qt fcitx5-gtk fcitx5-hangul fcitx5-anthy kcm-fcitx5 numix-gtk-theme-git numix-circle-icon-theme-git telegram-desktop nautilus eog smplayer smplayer-skins transgui-qt @@ -39,6 +39,7 @@ const linux: DotOption = { ".config/systemd": "linux/systemd", ".config/wallpaper": "wallpaper", ".config/nvim": "linux/nvim", + ".tmux/themes": "tmux/themes", ".xinitrc": "linux/xinitrc", ".pam_environment": "linux/pam_environment", ".zshrc": "linux/zshrc", diff --git a/tmux/themes/tomorrow.tmux b/tmux/themes/tomorrow.tmux new file mode 100644 index 0000000..31f980d --- /dev/null +++ b/tmux/themes/tomorrow.tmux @@ -0,0 +1,71 @@ +# Color key: +# #ffffff Background +# #efefef Current Line +# #d6d6d6 Selection +# #4d4d4c Foreground +# #8e908c Comment +# #c82829 Red +# #f5871f Orange +# #eab700 Yellow +# #718c00 Green +# #3e999f Aqua +# #4271ae Blue +# #8959a8 Purple + + +## set status bar +set -g status-style bg=default +setw -g window-status-current-style bg="#efefef" +setw -g window-status-current-style fg="#4271ae" + +## highlight active window +setw -g window-style bg=default +setw -g window-active-style bg=default +setw -g pane-active-border-style '' + +## highlight activity in status bar +setw -g window-status-activity-style fg="#3e999f" +setw -g window-status-activity-style bg=default + +## pane border and colors +set -g pane-active-border-style bg=default +set -g pane-active-border-style fg="#d6d6d6" +set -g pane-border-style bg=default +set -g pane-border-style fg="#d6d6d6" + +set -g clock-mode-colour "#4271ae" +set -g clock-mode-style 24 + +set -g message-style bg="#3e999f" +set -g message-style fg="#000000" + +set -g message-command-style bg="#3e999f" +set -g message-command-style fg="#000000" + +# message bar or "prompt" +set -g message-style bg="#2d2d2d" +set -g message-style fg="#cc99cc" + +set -g mode-style bg=default +set -g mode-style fg="#f5871f" + +# right side of status bar holds "[host name] (date time)" +set -g status-right-length 100 +set -g status-right-style fg=black +set -g status-right-style bold +set -g status-right '#[fg=#f99157,bg=#2d2d2d] %H:%M |#[fg=#6699cc] %y.%m.%d ' + +# make background window look like white tab +set-window-option -g window-status-style bg=default +set-window-option -g window-status-style fg=default +set-window-option -g window-status-style none +set-window-option -g window-status-format '#[fg=#6699cc,bg=colour235] #I #[fg=#999999,bg=#2d2d2d] #W #[default]' + +# make foreground window look like bold yellow foreground tab +set-window-option -g window-status-current-style none +set-window-option -g window-status-current-format '#[fg=#f99157,bg=#2d2d2d] #I #[fg=#cccccc,bg=#393939] #W #[default]' + +# active terminal yellow border, non-active white +set -g pane-border-style bg=default +set -g pane-border-style fg="#999999" +set -g pane-active-border-style fg="#f99157"