From 190e73c4ffe461fb008aae8a69767ecf4c3ee585 Mon Sep 17 00:00:00 2001 From: nnduc Date: Thu, 5 Jun 2025 11:15:33 +0700 Subject: [PATCH] up --- i3/config | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/i3/config b/i3/config index f3cf832..dbdc9e7 100644 --- a/i3/config +++ b/i3/config @@ -10,7 +10,7 @@ # Please see https://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod1 -set $wallpaper '/data/sync/Personal/images/wallpapers/suse.png' +set $wallpaper '/data/sync/images/wallpapers/suse.png' # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:NotoSans 12 @@ -32,13 +32,13 @@ exec --no-startup-id xss-lock --transfer-sleep-lock --i3lock --nofork --ignore-e exec --no-startup-id xrand --output HDMI-0 --mode 1920x1080 --rate 120 bindsym $mod+l exec i3lock --ignore-empty-password -i $wallpaper -bindsym $mod+Shift+p exec systemctl poweroff +bindsym $mod+Shift+p exec loginctl poweroff bindsym Print exec flameshot gui -c # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. # applets -exec --no-startup-id fcitx5 +exec --no-startup-id fcitx5 -d exec --no-startup-id nm-applet exec --no-startup-id blueman-applet exec --no-startup-id feh --bg-fill $wallpaper @@ -46,7 +46,8 @@ exec --no-startup-id owncloud exec --no-startup-id pasystray exec --no-startup-id polybar exec --no-startup-id xset m 1/1 0 -exec gentoo-pipewire-launcher restart & +exec xinput --set-prop "Razer Razer DeathAdder V2 X HyperSpeed Mouse" "Device Accel Constant Deceleration" 3 +exec --no-startup-id gentoo-pipewire-launcher restart & set $refresh_i3status killall -SIGUSR1 i3status @@ -64,9 +65,15 @@ bindsym XF86AudioPrev exec playerctl previous bindsym $mod+Shift+comma exec playerctl previous bindsym $mod+Shift+period exec playerctl next -bindcode $mod+61 exec playerctl play-pause -bindcode $mod+60 exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status -bindcode $mod+59 exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status +bindsym $mod+Shift+slash exec playerctl play-pause + +#bindcode $mod+Shift+58 exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status +#bindcode $mod+60 exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status +#bindcode $mod+59 exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status + +bindsym $mod+Shift+m exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym $mod+period exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status +bindsym $mod+comma exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status # Brightness key bindings bindsym XF86MonBrightnessUp exec brightnessctl set +5% @@ -111,10 +118,10 @@ bindsym $mod+Up focus up bindsym $mod+Right focus right # move focused window -bindsym $mod+Shift+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -bindsym $mod+Shift+semicolon move right +#bindsym $mod+Shift+j move left +#bindsym $mod+Shift+k move down +#bindsym $mod+Shift+l move up +#bindsym $mod+Shift+semicolon move right # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left @@ -190,7 +197,7 @@ bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exec i3-msg exit +bindsym $mod+Shift+l exec i3-msg exit #bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" # resize window (you can also use the mouse for that) @@ -241,8 +248,11 @@ bindsym $mod+r mode "resize" #floating for_window [class="Signal"] floating enable -for_window [class="Gajim"] floating enable +for_window [class="Fluffychat"] floating enable +for_window [class="Dino"] floating enable +for_window [class="ownCloud"] floating enable for_window [class="firefox"] move container to workspace 1 for_window [class="thunderbird"] move container to workspace 4 +for_window [class="Dolphin"] move container to workspace 3 for_window [class="Thunar"] move container to workspace 3