This commit is contained in:
Le_Foucheur committed 2024-09-15 22:10:50 +02:00
1 parent bd49911eca
commit e3de01bde8
3742 files changed
+64316

No files matched your search

+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay if [exec playerctl metadata --player=Deezer --format '{{lc(status)}}' == 'playing']; then
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
$bindsym Shift+XF86AudioNext exec playerctl position 5+
$bindsym Shift+XF86AudioPrev exec playerctl position 5-
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec if [playerctl metadata --player=Deezer --format '{{lc(status)}}' == 'playing']
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+k splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+b focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+à layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrevious exec playerctl previous
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+k splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
#$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
#$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
$bindsym Shift+XF86AudioNext exec playerctl position 30+
$bindsym Shift+XF86AudioPrev exec playerctl position 30-
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+261
View File
@@ -0,0 +1,261 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec if [[ exec playerctl metadata --player=Deezer --format '{{lc(status)}}' == 'playing' ]]; then exec playerctl pause; else exec playerctl play fi
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec if
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+261
View File
@@ -0,0 +1,261 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10u
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshot
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
$bindsym Shift+XF86AudioNext exec playerctl position 5+
$bindsym Shift+XF86AudioPrev exec playerctl position 5-
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
@@ -0,0 +1 @@
{"version":1,"resource":"file:///home/jvj/.config/sway/config","entries":[{"id":"imxi","timestamp":1723656842626},{"id":"l6Ss","timestamp":1723656890470},{"id":"MudB","timestamp":1723656927316},{"id":"YvK6","timestamp":1723714684801},{"id":"QwB1","timestamp":1724449012732},{"id":"8UN2","timestamp":1724449065501},{"id":"3f3T","timestamp":1724449137552},{"id":"h8gU","timestamp":1724449258073},{"id":"uuNW","timestamp":1724449286484},{"id":"o4U7","timestamp":1724449331444},{"id":"P1VD","timestamp":1724449416579},{"id":"QUAP","timestamp":1724449838734},{"id":"n7P2","timestamp":1724449899480},{"id":"JEqK","timestamp":1724449944477},{"id":"MYC4","timestamp":1724449984445},{"id":"MNWc","timestamp":1724450498474},{"id":"DFVV","source":"undoRedo.source","timestamp":1724450516272},{"id":"zPwp","timestamp":1724450544752},{"id":"Gwv7","timestamp":1724450556493},{"id":"ZZpy","timestamp":1724450950414},{"id":"YtRZ","timestamp":1724581176145},{"id":"fowh","timestamp":1724713866708},{"id":"jnSW","timestamp":1724713880356},{"id":"ZROF","timestamp":1724974486334},{"id":"6Xyj","timestamp":1724974523529},{"id":"p8Om","timestamp":1724974560174},{"id":"TQkH","timestamp":1725014552190},{"id":"Khkm","source":"undoRedo.source","timestamp":1725014691410},{"id":"XqvC","timestamp":1725016273216},{"id":"HYNG","timestamp":1725016291491},{"id":"ZsWO","timestamp":1725016323279},{"id":"7JLg","timestamp":1725016348842},{"id":"hypY","timestamp":1725016482315},{"id":"QdJj","timestamp":1725017725258},{"id":"oexz","timestamp":1725017742410},{"id":"z6Y5","timestamp":1725017777268},{"id":"EVZ8","timestamp":1725017878193},{"id":"5mpP","timestamp":1725017905173},{"id":"PcIb","timestamp":1725018141206},{"id":"hVql","timestamp":1725018234289},{"id":"L0ui","timestamp":1725018358477},{"id":"6ccO","timestamp":1725018400938}]}
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec sudo /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec sudo /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay if [[ exec playerctl metadata --player=Deezer --format '{{lc(status)}}' == 'playing' ]]; then
exec playerctl pause
else exec playerctl play
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+k splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+261
View File
@@ -0,0 +1,261 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/julien/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+261
View File
@@ -0,0 +1,261 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+264
View File
@@ -0,0 +1,264 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay if [[ exec playerctl metadata --player=Deezer --format '{{lc(status)}}' == 'playing' ]]; then exec playerctl pause; else exec playerctl play fi
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+b focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay if [[ exec playerctl metadata --player=Deezer --format '{{lc(status)}}' == 'playing' ]]; then exec playerctl pause; else exec playerctl play
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
#$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init