dotfiles/laptop/config

272 lines
8.1 KiB
Text
Raw Permalink Normal View History

2023-08-17 14:14:00 +09:00
# 神は言った――「光あれ」
set $mod Mod4
# ウインドウタイトルのフォント
font pango:Noto Sans CJK JP 8
# フローティングウインドウの操作キー
floating_modifier $mod
# ターミナル
bindsym $mod+Return exec --no-startup-id alacritty
# ファイラー
bindsym $mod+m exec --no-startup-id thunar
# メーラー
bindsym $mod+t exec --no-startup-id thunderbird
2023-08-17 14:14:00 +09:00
# タスクキル
bindsym $mod+q kill
# ランチャー
bindsym $mod+z exec --no-startup-id "rofi -show drun"
bindsym $mod+x exec --no-startup-id "rofi -show run"
2024-05-11 09:39:23 +09:00
bindsym $mod+Tab exec --no-startup-id "rofi -show window"
2023-08-17 14:14:00 +09:00
# ウインドウフォーカス
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# 代替ウインドウフォーカス
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# ウインドウ交換
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
# 代替ウインドウ交換
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# 水平ウインドウ分割
bindsym $mod+s split v
# 垂直ウインドウ分割
bindsym $mod+v split h
# フルスクリーン
bindsym $mod+f fullscreen toggle
# ウインドウの分割切り替え
bindsym $mod+e layout toggle split
# ウインドウフロート
bindsym $mod+w floating toggle
# フロートウインドウフォーカス
bindsym $mod+space focus mode_toggle
# 親コンテナへのフォーカス
bindsym $mod+a focus parent
# 子コンテナへのフォーカス
bindsym $mod+b focus child
# ワークスペース変数
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# ワークスペースの移動
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
# ウインドウを他のワークスペースに移動する
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10
# 設定の再読込み
bindsym $mod+Shift+c reload
# 再起動
bindsym $mod+Shift+r restart
# ウインドウリサイズ
mode "RESIZE" {
# リサイズキー
bindsym h resize shrink width 10 px or 5 ppt
bindsym j resize grow height 10 px or 5 ppt
bindsym k resize shrink height 10 px or 5 ppt
bindsym l resize grow width 10 px or 5 ppt
# 代替リサイズキー
bindsym Left resize shrink width 10 px or 5 ppt
bindsym Down resize grow height 10 px or 5 ppt
bindsym Up resize shrink height 10 px or 5 ppt
bindsym Right resize grow width 10 px or 5 ppt
# ノーマルモードへ遷移
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "RESIZE"
# コマンドモード――これによりキーバインドは実質無制限となる!
bindsym $mod+c mode "CMD"
mode "CMD"{
bindsym v exec vivaldi-stable; mode "default"
bindsym f exec "flameshot gui" mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+c mode "default"
}
# シャットダウンシークエンス
bindsym $mod+Shift+e mode "SHUTDOWN SEQUENCE"
mode "SHUTDOWN SEQUENCE"{
bindsym p exec "systemctl poweroff"
bindsym r exec "systemctl reboot"
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+Shift+e mode "default"
}
# ステータスバーの色
2024-10-24 10:52:15 +09:00
set $background #272E33
set $foreground #D3C6AA
set $lightred #E67E80
set $lightgreen #A7C080
set $lightyellow #DBBC7F
set $lightblue #83C092
set $lightmagenta #D699B6
set $lightcyan #7FBBB3
set $lightwhite #D3C6AA
2023-08-17 14:14:00 +09:00
set $pink #FFB6C1
2024-10-24 10:52:15 +09:00
set $orange #E69875
2023-08-17 14:14:00 +09:00
# ステータスバー関連
bar {
2024-05-05 22:23:36 +09:00
font pango:UDEV Gothic 35 10
2023-08-17 14:14:00 +09:00
mode dock
position top
workspace_buttons yes
strip_workspace_numbers yes
binding_mode_indicator yes
tray_padding 2
colors {
background $background
focused_background $background
statusline $lightred
focused_statusline $lightred
# 左からborder, bg, fg
2024-10-24 10:52:15 +09:00
focused_workspace $red $red $background
2023-08-17 14:14:00 +09:00
active_workspace $background $background $foreground
inactive_workspace $background $background $foreground
urgent_workspace $green $green $background
binding_mode $green $green $background
}
2024-10-24 12:15:20 +09:00
status_command /usr/bin/bumblebee-status -m playerctl pasink pasource datetime battery \
-p playerctl.hide="true" playerctl.format="{{artist}} - {{title}}" playerctl.layout="playerctl.song" datetime.format="%m/%d %H:%M" -t everforest
2023-08-17 14:14:00 +09:00
}
# i3wm全体の色
2024-10-24 10:52:15 +09:00
set $bg #272E33
set $fg #D3C6AA
set $darkred #E69875
set $red #E67E80
set $darkgreen #A7C080
set $green #A7C080
set $darkyellow #DBBC7F
set $yellow #DBBC7F
set $darkblue #83C092
set $blue #7FBBB3
set $darkmagenta #D699B6
set $darkcyan #7FBBB3
set $cyan #7FBBB3
set $darkwhite #D3C6AA
set $white #D3C6AA
set $darkgrey #9DA9AD
2023-08-17 14:14:00 +09:00
# フォーカスカラー
# class border background text indicator child_border
2024-10-24 10:52:15 +09:00
client.focused $bg $darkgrey $fg $yellow $orange
2023-08-17 14:14:00 +09:00
client.unfocused $bg $bg $fg $yellow $bg
# ウインドウ枠の太さ
for_window [class="^.*"] border pixel 2
# gaps
2024-05-05 22:23:36 +09:00
gaps top 4
gaps bottom 4
gaps right 4
gaps left 4
gaps inner 4
2023-08-17 14:14:00 +09:00
# マウスでフォーカスしない
focus_follows_mouse no
# 音量調整
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym XF86AudioMute exec pactl set-sink-mute alsa_output.pci-0000_00_1f.3.analog-stereo toggle
bindsym XF86AudioMicMute exec pactl set-source-mute alsa_input.pci-0000_00_1f.3.analog-stereo toggle
# 輝度調整
bindsym XF86MonBrightnessUp exec light -A 10
bindsym XF86MonBrightnessDown exec light -U 10
# 自動起動
exec --no-startup-id dunst
2024-05-18 11:57:20 +09:00
exec --no-startup-id "picom -b"
2023-08-17 14:14:00 +09:00
exec --no-startup-id xfce4-power-manager
exec --no-startup-id fcitx5
exec --no-startup-id light-locker --lock-on-suspend
2023-09-08 08:28:10 +09:00
exec --no-startup-id nextcloud
2023-08-17 14:14:00 +09:00
exec --no-startup-id "feh --no-fehbg --bg-scale ~/Wallpaper.png"
exec --no-startup-id "xset r rate 200 30"
exec --no-startup-id "libinput-gestures-setup start"
# フローティング起動一覧
for_window [class="Bitwarden"] floating enable
for_window [class="Thunar"] floating enable
for_window [class="Lxappearance"] floating enable, resize set 800 600
for_window [class="Pavucontrol"] floating enable, resize set 800 600
for_window [class="feh"] floating enable, resize set 1280 1024
for_window [class="fcitx5-config-qt"] floating enable
for_window [class="mozc_tool"] floating enable, resize set 600 400
for_window [class="Blueman-manager"] floating enable, resize set 800 600
2023-09-08 08:28:10 +09:00
for_window [class="Mousepad"] floating enable, resize set 800 600
2023-08-17 14:14:00 +09:00
for_window [class="qt5ct"] floating enable, resize set 800 600
for_window [class="Qtconfig-qt4"] floating enable, resize set 800 600
2023-08-25 15:27:53 +09:00
for_window [class="thunderbird"] floating enable, resize set 1440 1024
2024-07-14 20:09:59 +09:00
for_window [class="Emulator"] floating enable
2023-08-17 14:14:00 +09:00
# ワークスペース指定一覧
assign [class="discord"] workspace 3
assign [class="Slack"] workspace 4