Skip to content

Instantly share code, notes, and snippets.

View husen-hn's full-sized avatar
🏠
Working from home

Hossein HassanNejad husen-hn

🏠
Working from home
View GitHub Profile
data class MyData(var value: String)
fun main() {
var mutable = MyData("Foo")
val immutable = MyData("Bar")
mutable = immutable // This is fine
immutable = mutable // This will not compile
}
exec --no-startup-id start-pulseaudio-x11
exec --no-startup-id pa-applet
bindsym $mod+Ctrl+m exec pavucontrol
@husen-hn
husen-hn / i3shut
Created August 6, 2020 04:59
i3 : Set shut down, restart and locking features
bindsym $mod+0 mode "$mode_system"
set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
mode "$mode_system" {
bindsym l exec --no-startup-id i3exit lock, mode "default"
bindsym s exec --no-startup-id i3exit suspend, mode "default"
bindsym u exec --no-startup-id i3exit switch_user, mode "default"
bindsym e exec --no-startup-id i3exit logout, mode "default"
bindsym h exec --no-startup-id i3exit hibernate, mode "default"
bindsym r exec --no-startup-id i3exit reboot, mode "default"
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"