at://nekomimi.pet/li.plonk.paste/3lrel5wedfs2x

Back to Collection

Record JSON

{
  "$type": "li.plonk.paste",
  "code": "exec_always dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK\r\n\r\ndefault_border none\r\ndefault_floating_border none\r\nset $opacity 0.9\r\nfor_window [class=\".*\"] opacity $opacity\r\nfor_window [app_id=\".*\"] opacity $opacity\r\n\r\nbindsym Print exec wl-copy \u003c $(grimshot --notify save area)\r\n\r\n# Default config for sway\r\n#\r\n# Copy this to ~/.config/sway/config and edit it to your liking.\r\n#\r\n# Read `man 5 sway` for a complete reference.\r\n\r\n### Variables\r\n#\r\n# Logo key. Use Mod1 for Alt.\r\nset $mod Mod4\r\n# Home row direction keys, like vim\r\nset $left h\r\nset $down j\r\nset $up k\r\nset $right l\r\n# Your preferred terminal emulator\r\nset $term ghostty\r\n# Your preferred application launcher\r\nset $menu wmenu-run\r\n\r\n### Output configuration\r\n#\r\n# Default wallpaper (more resolutions are available in @datadir@/backgrounds/sway/)\r\n#output * bg @datadir@/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill\r\n#\r\n# Example configuration:\r\n#\r\n#   output HDMI-A-1 resolution 1920x1080 position 1920,0\r\n#\r\n# You can get the names of your outputs by running: swaymsg -t get_outputs\r\n\r\noutput HDMI-A-1 resolution 3440x1440@99.992Hz position 0,0 bg /home/regent/wallpaper/ganyu.png fill\r\noutput DP-1 resolution 1920x1080@74.986Hz position 3440,0\r\n\r\n### Idle configuration\r\n#\r\n# Example configuration:\r\n#\r\n# exec swayidle -w \\\r\n#          timeout 300 'swaylock -f -c 000000' \\\r\n#          timeout 600 'swaymsg \"output * power off\"' resume 'swaymsg \"output * power on\"' \\\r\n#          before-sleep 'swaylock -f -c 000000'\r\n#\r\n# This will lock your screen after 300 seconds of inactivity, then turn off\r\n# your displays after another 300 seconds, and turn your screens back on when\r\n# resumed. It will also lock your screen before your computer goes to sleep.\r\n\r\n### Input configuration\r\n#\r\n# Example configuration:\r\n#\r\n#   input type:touchpad {\r\n#       dwt enabled\r\n#       tap enabled\r\n#       natural_scroll enabled\r\n#       middle_emulation enabled\r\n#   }\r\n#\r\n#   input type:keyboard {\r\n#       xkb_layout \"eu\"\r\n#   }\r\n#\r\n# swaymsg -t get_inputs\r\ninput type:pointer {\r\n    dwt enabled\r\n    tap enabled\r\n    accel_profile \"flat\"\r\n    pointer_accel -0.1\r\n}\r\n\r\n\r\n### Key bindings\r\n#\r\n# Basics:\r\n#\r\n    # Start a terminal\r\n    bindsym $mod+Return exec $term\r\n\r\n    # Kill focused window\r\n    bindsym $mod+Shift+q kill\r\n\r\n    # Start your launcher\r\n    bindsym $mod+d exec $menu\r\n\r\n    # Drag floating windows by holding down $mod and left mouse button.\r\n    # Resize them with right mouse button + $mod.\r\n    # Despite the name, also works for non-floating windows.\r\n    # Change normal to inverse to use left mouse button for resizing and right\r\n    # mouse button for dragging.\r\n    floating_modifier $mod normal\r\n\r\n    # Reload the configuration file\r\n    bindsym $mod+Shift+c reload\r\n\r\n    # Exit sway (logs you out of your Wayland session)\r\n    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'\r\n#\r\n# Moving around:\r\n#\r\n    # Move your focus around\r\n    bindsym $mod+$left focus left\r\n    bindsym $mod+$down focus down\r\n    bindsym $mod+$up focus up\r\n    bindsym $mod+$right focus right\r\n    # Or use $mod+[up|down|left|right]\r\n    bindsym $mod+Left focus left\r\n    bindsym $mod+Down focus down\r\n    bindsym $mod+Up focus up\r\n    bindsym $mod+Right focus right\r\n\r\n    # Move the focused window with the same, but add Shift\r\n    bindsym $mod+Shift+$left move left\r\n    bindsym $mod+Shift+$down move down\r\n    bindsym $mod+Shift+$up move up\r\n    bindsym $mod+Shift+$right move right\r\n    # Ditto, with arrow keys\r\n    bindsym $mod+Shift+Left move left\r\n    bindsym $mod+Shift+Down move down\r\n    bindsym $mod+Shift+Up move up\r\n    bindsym $mod+Shift+Right move right\r\n#\r\n# Workspaces:\r\n#\r\n    # Switch to workspace\r\n    bindsym $mod+1 workspace number 1\r\n    bindsym $mod+2 workspace number 2\r\n    bindsym $mod+3 workspace number 3\r\n    bindsym $mod+4 workspace number 4\r\n    bindsym $mod+5 workspace number 5\r\n    bindsym $mod+6 workspace number 6\r\n    bindsym $mod+7 workspace number 7\r\n    bindsym $mod+8 workspace number 8\r\n    bindsym $mod+9 workspace number 9\r\n    bindsym $mod+0 workspace number 10\r\n    # Move focused container to workspace\r\n    bindsym $mod+Shift+1 move container to workspace number 1\r\n    bindsym $mod+Shift+2 move container to workspace number 2\r\n    bindsym $mod+Shift+3 move container to workspace number 3\r\n    bindsym $mod+Shift+4 move container to workspace number 4\r\n    bindsym $mod+Shift+5 move container to workspace number 5\r\n    bindsym $mod+Shift+6 move container to workspace number 6\r\n    bindsym $mod+Shift+7 move container to workspace number 7\r\n    bindsym $mod+Shift+8 move container to workspace number 8\r\n    bindsym $mod+Shift+9 move container to workspace number 9\r\n    bindsym $mod+Shift+0 move container to workspace number 10\r\n    # Note: workspaces can have any name you want, not just numbers.\r\n    # We just use 1-10 as the default.\r\n#\r\n# Layout stuff:\r\n#\r\n    # You can \"split\" the current object of your focus with\r\n    # $mod+b or $mod+v, for horizontal and vertical splits\r\n    # respectively.\r\n    bindsym $mod+b splith\r\n    bindsym $mod+v splitv\r\n\r\n    # Switch the current container between different layout styles\r\n    #bindsym $mod+s layout stacking\r\n    bindsym $mod+w layout tabbed\r\n    bindsym $mod+e layout toggle split\r\n\r\n    # Make the current focus fullscreen\r\n    bindsym $mod+f fullscreen\r\n\r\n    # Toggle the current focus between tiling and floating mode\r\n    bindsym $mod+Shift+space floating toggle\r\n\r\n    # Swap focus between the tiling area and the floating area\r\n    bindsym $mod+space focus mode_toggle\r\n\r\n    # Move focus to the parent container\r\n    bindsym $mod+a focus parent\r\n#\r\n# Scratchpad:\r\n#\r\n    # Sway has a \"scratchpad\", which is a bag of holding for windows.\r\n    # You can send windows there and get them back later.\r\n\r\n    # Move the currently focused window to the scratchpad\r\n    bindsym $mod+Shift+minus move scratchpad\r\n\r\n    # Show the next scratchpad window or hide the focused scratchpad window.\r\n    # If there are multiple scratchpad windows, this command cycles through them.\r\n    bindsym $mod+minus scratchpad show\r\n#\r\n# Resizing containers:\r\n#\r\nmode \"resize\" {\r\n    # left will shrink the containers width\r\n    # right will grow the containers width\r\n    # up will shrink the containers height\r\n    # down will grow the containers height\r\n    bindsym $left resize shrink width 10px\r\n    bindsym $down resize grow height 10px\r\n    bindsym $up resize shrink height 10px\r\n    bindsym $right resize grow width 10px\r\n\r\n    # Ditto, with arrow keys\r\n    bindsym Left resize shrink width 10px\r\n    bindsym Down resize grow height 10px\r\n    bindsym Up resize shrink height 10px\r\n    bindsym Right resize grow width 10px\r\n\r\n    # Return to default mode\r\n    bindsym Return mode \"default\"\r\n    bindsym Escape mode \"default\"\r\n}\r\nbindsym $mod+r mode \"resize\"\r\n#\r\n# Utilities:\r\n#\r\n    # Special keys to adjust volume via PulseAudio\r\n    bindsym --locked XF86AudioMute exec pactl set-sink-mute \\@DEFAULT_SINK@ toggle\r\n    bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume \\@DEFAULT_SINK@ -5%\r\n    bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume \\@DEFAULT_SINK@ +5%\r\n    bindsym --locked XF86AudioMicMute exec pactl set-source-mute \\@DEFAULT_SOURCE@ toggle\r\n\r\n    # Special keys to control media via playerctl\r\n    bindsym --locked XF86AudioPlay exec playerctl play-pause\r\n    bindsym --locked XF86AudioPause exec playerctl play-pause\r\n    bindsym --locked XF86AudioPrev exec playerctl previous\r\n    bindsym --locked XF86AudioNext exec playerctl next\r\n    bindsym --locked XF86AudioStop exec playerctl stop\r\n\r\n    # Special keys to adjust brightness via brightnessctl\r\n    bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-\r\n    bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+\r\n\r\n    # Special key to take a screenshot with grim\r\n    #bindsym Print exec grim\r\n\r\n#\r\n# Status Bar:\r\n#\r\n# Read `man 5 sway-bar` for more information about this section.\r\n#bar {\r\n#    position top\r\n#\r\n    # When the status_command prints a new line to stdout, swaybar updates.\r\n    # The default just shows the current date and time.\r\n#    status_command while date +'%Y-%m-%d %X'; do sleep 1; done\r\n#\r\n#    colors {\r\n#        statusline #ffffff\r\n#        background #323232\r\n#        inactive_workspace #32323200 #32323200 #5c5c5c\r\n#    }\r\n#}\r\n\r\ninclude @sysconfdir@/sway/config.d/*",
  "createdAt": "2025-06-11T23:36:21.147Z",
  "lang": "plaintext",
  "shortUrl": "lN",
  "title": "swayconf"
}