Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UserConfig
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Jiří Kalvoda
UserConfig
Commits
bb72c0f5
Commit
bb72c0f5
authored
5 years ago
by
JiriKalvoda
Browse files
Options
Downloads
Patches
Plain Diff
I3 Add toggle-border and floating WUI.
parent
1fd07b0d
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
i3/config
+7
-0
7 additions, 0 deletions
i3/config
i3/init.sh
+2
-0
2 additions, 0 deletions
i3/init.sh
i3/toggle-border
+8
-0
8 additions, 0 deletions
i3/toggle-border
with
17 additions
and
0 deletions
i3/config
+
7
−
0
View file @
bb72c0f5
...
...
@@ -188,6 +188,7 @@ bindsym $mod+c exec chromium-browser --password-store=gnome
bindsym $mod+z exec zathura
bindsym $mod+Shift+comma workspace WUI;exec ~/dev/runWUI/run.sh
bindsym $mod+comma workspace WUI
for_window [title="WebUpdatingIndicator compare"] floating enable
bindsym $mod+Shift+m workspace MAIL,exec mailspring
bindsym $mod+m workspace MAIL
bindsym $mod+n exec nemo
...
...
@@ -198,6 +199,7 @@ exec numlockx on
floating_modifier $mod
bindsym $outmod+w exec light - 0.9 ; exec lightGUI
bindsym $outmod+e exec light - 0.15; exec lightGUI
bindsym $outmod+r exec light + 0.15; exec lightGUI
...
...
@@ -216,3 +218,8 @@ bindsym $outmod+m exec xrandr --auto; exec xrandr --output HDMI-1 --pos 0x0 --o
bindsym Control+Print exec gnome-screenshot -i
exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
for_window [class=".*"] border pixel 1
bindsym $mod+p exec ~/.config/i3/i3-toggle-border
This diff is collapsed.
Click to expand it.
i3/init.sh
+
2
−
0
View file @
bb72c0f5
if
[[
$(
id
-u
)
-ne
0
]]
;
then
echo
"Please run as root"
;
exit
1
;
fi
apt
install
numlockx
apt
install
jq
cp
config ~/.config/i3/config
cp
toggle-border ~/.config/i3/i3-toggle-border
This diff is collapsed.
Click to expand it.
i3/toggle-border
0 → 100755
+
8
−
0
View file @
bb72c0f5
#!/bin/bash
MODE
=
$(
i3-msg
-t
get_tree | jq
-r
'.. | .nodes? | .[]? | select(.window!=null and .focused==true).border'
)
if
[
$MODE
=
"normal"
]
;
then
i3-msg border pixel 1
else
i3-msg border normal 1
fi
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