Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dotfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jens Nolte
dotfiles
Commits
a64f3857
Commit
a64f3857
authored
2 years ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Update sway configuration
parent
6204c18b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
layers/desktop.nix
+1
-4
1 addition, 4 deletions
layers/desktop.nix
modules/sway/config.nix
+15
-2
15 additions, 2 deletions
modules/sway/config.nix
with
16 additions
and
6 deletions
layers/desktop.nix
+
1
−
4
View file @
a64f3857
...
...
@@ -35,11 +35,9 @@ in
foot
glxinfo
gnome3
.
gnome-disk-utility
networkmanagerapplet
wayvnc
tigervnc
dfeet
#vimiv
mpv-queezle
wdisplays
squeekboard
...
...
@@ -80,7 +78,6 @@ in
sysstat
zsh
bash
wirelesstools
lm_sensors
jq
];
...
...
@@ -110,7 +107,7 @@ in
programs
.
sway
.
enable
=
true
;
programs
.
sway
.
extraPackages
=
with
pkgs
;
[
swaylock
swayidle
xwayland
kitty
cool-retro-term
xorg
.
xrdb
];
programs
.
sway
.
extraPackages
=
with
pkgs
;
[
swaylock
swayidle
xwayland
kitty
cool-retro-term
xorg
.
xrdb
slurp
];
# QT_QPA_PLATFORM=wayland requires qt5.qtwayland in systemPackages
programs
.
sway
.
extraSessionCommands
=
''
export XDG_SESSION_TYPE=wayland
...
...
This diff is collapsed.
Click to expand it.
modules/sway/config.nix
+
15
−
2
View file @
a64f3857
...
...
@@ -3,7 +3,7 @@ with lib;
let
cfg
=
config
.
queezle
.
sway
;
temperature-bin
=
pkgs
.
writeScript
"temperature.zsh"
''
#!
/usr
/bin/
env
zsh
#!
${
pkgs
.
zsh
}
/bin/zsh
echo -n $'🔥\uFE0E '
...
...
@@ -16,6 +16,12 @@ let
exit 42
''
;
toggle-microphone-mute
=
pkgs
.
writeScript
"toggle-microphone-mute.zsh"
''
#!
${
pkgs
.
zsh
}
/bin/zsh
pamixer --default-source --toggle-mute
readonly ismuted=$(pamixer --default-source --get-mute || true)
busctl --user set-property net.sourceforge.mumble.mumble / net.sourceforge.mumble.Mumble mute b $ismuted
''
;
in
pkgs
.
writeText
"sway-config"
''
# sway config file
...
...
@@ -199,7 +205,8 @@ bindsym --locked $mod+Ctrl+F12 exec $brightnessFull
# Toggle mumble mute
# TODO: merge with mumble config (requires sway config merging)
bindsym --locked Pause exec ~/.local/bin/mumble-toggle-mute
bindsym --locked Pause exec
${
toggle-microphone-mute
}
bindsym --locked XF86AudioMicMute exec
${
toggle-microphone-mute
}
# The middle button over a titlebar kills the window
bindsym button2 kill
...
...
@@ -380,6 +387,12 @@ bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exec "swaymsg exit"
# resize window (you can also use the mouse for that)
bindsym $mod+Alt+ resize shrink width 10 px or 10 ppt
bindsym $mod+Alt+j resize shrink height 10 px or 10 ppt
bindsym $mod+Alt+k resize grow height 10 px or 10 ppt
bindsym $mod+Alt+l resize grow width 10 px or 10 ppt
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment