dotfiles/config

271 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 {
font pango:UDEV Gothic 35 13
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
2024-11-02 20:14:24 +09:00
urgent_workspace $darkblue $darkblue $background
2023-08-17 14:14:00 +09:00
binding_mode $green $green $background
}
status_command /usr/bin/bumblebee-status -m playerctl datetime \
2024-10-24 12:15:20 +09:00
-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 top 6
gaps bottom 6
gaps right 6
gaps left 6
gaps inner 6
# マウスでフォーカスしない
focus_follows_mouse no
# 自動起動
exec --no-startup-id dunst
2023-09-12 09:42:03 +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 vivaldi-stable
exec --no-startup-id discord
exec --no-startup-id slack
exec --no-startup-id parcellite
2023-08-28 14:32:32 +09:00
exec --no-startup-id thunderbird
2023-09-12 09:42:03 +09:00
exec --no-startup-id nextcloud
2023-08-17 14:14:00 +09:00
exec --no-startup-id "./sh/mount.sh"
exec --no-startup-id "feh --no-fehbg --bg-scale ~/Wallpaper.png"
exec --no-startup-id "xset r rate 200 30"
# フローティング起動一覧
for_window [class="Thunar"] floating enable, resize set 1024 780
for_window [class="Lxappearance"] floating enable, resize set 800 600
for_window [class="Pavucontrol"] floating enable, resize set 800 600
for_window [class="fcitx5-config-qt"] floating enable
for_window [class="mozc_tool"] floating enable, resize set 800 600
for_window [class="VirtualBox Manager"] floating enable, resize set 1280 1024
for_window [class="VirtualBox Machine"] floating enable
for_window [class="Io.github.celluloid_player.Celluloid"] floating enable
for_window [class="feh"] floating enable, resize set 1280 1024
for_window [class="transmission-gtk"] floating enable
for_window [class="stacer"] floating enable
for_window [class="Mousepad"] floating enable, resize set 1280 1024
for_window [class="Xfce4-power-manager-settings"] floating enable, resize 1024 780
for_window [class="qt5ct"] floating enable, resize set 1024 780
for_window [class="Qtconfig-qt4"] floating enable, resize set 1024 780
2023-08-25 15:25:06 +09:00
for_window [class="kdeconnect.app"] floating enbale, resize set 1280 1024
for_window [class="thunderbird"] floating enable, resize set 1440 1024
2023-09-12 09:42:03 +09:00
for_window [class="Gnucash"] floating enable, resize set 1440 1024
2024-07-14 18:02:51 +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 3