diff --git a/.config/i3/config b/.config/i3/config index 4e4d03e..8387d75 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -274,9 +274,14 @@ bindsym XF86AudioPrev exec playerctl previous bindsym $mod+p exec /usr/local/bin/switch-audio-port ## App shortcuts -bindsym $mod+w exec /usr/bin/firefox +bindsym $mod+w exec /usr/bin/microsoft-edge-stable bindsym $mod+n exec /usr/bin/thunar -bindsym Print exec scrot ~/%Y-%m-%d-%T-screenshot.png && notify-send "Screenshot saved to ~/$(date +"%Y-%m-%d-%T")-screenshot.png" +#bindsym Print exec scrot ~/%Y-%m-%d-%T-screenshot.png && notify-send "Screenshot saved to ~/$(date +"%Y-%m-%d-%T")-screenshot.png" + +## Screenshots +bindsym Print exec --no-startup-id maim -u "/home/$USER/Pictures/$(date).png" && notify-send "Screenshot saved" +bindsym $mod+Print exec --no-startup-id maim -u --window $(xdotool getactivewindow) "/home/$USER/Pictures/$(date).png" && notify-send "Screenshot saved" +bindsym Shift+Print exec --no-startup-id maim -u --select "/home/$USER/Pictures/$(date).png" && notify-send "Screenshot saved" # Power Profiles menu switcher (rofi) bindsym $mod+Shift+p exec ~/.config/i3/scripts/power-profiles @@ -344,7 +349,7 @@ for_window [class=TelegramDesktop] focus # For modifications, it can be copied to ~/.config/picom/picom.conf or ~/.config/picom.conf # # using default config -#exec_always --no-startup-id picom -b +exec_always --no-startup-id picom -b # # for custom config: #exec_always --no-startup-id picom --config ~/.config/picom.conf @@ -378,14 +383,14 @@ exec --no-startup-id dex --autostart --environment i3 # start a script to setup displays # uncomment the next line, use arandr to setup displays and save the file as monitor: -exec --no-startup-id ~/.screenlayout/monitor.sh +#exec --no-startup-id ~/.screenlayout/monitor.sh # set wallpaper -# exec --no-startup-id sleep 2 && nitrogen --restore -exec --no-startup-id sleep 1 && feh --bg-fill /usr/share/endeavouros/backgrounds/endeavouros-wallpaper.png +exec --no-startup-id sleep 2 && nitrogen --restore +#exec --no-startup-id feh --bg-fill /usr/share/endeavouros/backgrounds/endeavouros_i3.png # set powersavings for display: -exec --no-startup-id xset s 480 dpms 600 600 600 +exec --no-startup-id xset s 180 dpms 300 300 300 # disable power saving (for example if using xscreensaver) #exec --no-startup-id xset -dpms @@ -410,9 +415,10 @@ exec --no-startup-id dbus-launch dunst --config ~/.config/dunst/dunstrc #exec_always --no-startup-id autotiling # Autostart apps as you like -#exec --no-startup-id sleep 2 && xfce4-terminal -exec --no-startup-id sleep 7 && firefox https://github.com/endeavouros-team/endeavouros-i3wm-setup/blob/main/force-knowledge.md +exec --no-startup-id sleep 2 && xfce4-terminal +#exec --no-startup-id sleep 7 && firefox https://github.com/endeavouros-team/endeavouros-i3wm-setup/blob/main/force-knowledge.md #exec --no-startup-id sleep 3 && thunar +#exec --no-startup-id sleep 2 && ibus-daemon ############### # system tray # @@ -476,10 +482,10 @@ set $yellowbrown #e1b700 # define colors for windows: #class border bground text indicator child_border -client.focused $lightblue $darkblue $white $mediumgrey $mediumgrey -client.unfocused $darkblue $darkblue $grey $darkgrey $darkgrey -client.focused_inactive $darkblue $darkblue $grey $black $black -client.urgent $urgentred $urgentred $white $yellowbrown $yellowbrown +client.focused $lightblue $darkblue $white $purple $mediumgrey +client.unfocused $darkblue $darkblue $grey $purple $darkgrey +client.focused_inactive $darkblue $darkblue $grey $purple $black +client.urgent $urgentred $urgentred $white $purple $yellowbrown ############################################ # bar settings (input comes from i3blocks) # @@ -494,7 +500,7 @@ bar { # i3bar_command i3bar --transparency # it could be that you have no primary display set: set one (xrandr --output --primary) # reference: https://i3wm.org/docs/userguide.html#_tray_output - tray_output primary + tray_output HDMI2 tray_padding 0 # When strip_workspace_numbers is set to yes, @@ -571,3 +577,9 @@ bindsym $mod+t exec rofi -show window \ #exec --no-startup-id greenclip daemon>/dev/null #bindsym $mod+c exec --no-startup-id rofi -modi "clipboard:greenclip print" -show clipboard \ # -config ~/.config/rofi/rofidmenu.rasi + +####################### +#### IBus-Bamboo ###### +exec_always "/home/thuanbui/Documents/startup.sh" +# Change language +bindsym $mod+Shift+i exec --no-startup-id "/home/thuanbui/Documents/changelanguage.sh"